Add PAM authentication to Mineos
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
become: true
|
become: true
|
||||||
yum:
|
yum:
|
||||||
name: ['bind-utils', 'screen',
|
name: ['bind-utils', 'screen',
|
||||||
'git', 'wget', 'java-1.8.0-openjdk-headless.x86_64', 'openssl', 'openssl-devel', 'rsync', 'rdiff-backup']
|
'git', 'wget', 'java-1.8.0-openjdk-headless.x86_64', 'openssl', 'openssl-devel', 'rsync', 'rdiff-backup', 'pam-devel']
|
||||||
state: present
|
state: present
|
||||||
enablerepo: epel
|
enablerepo: epel
|
||||||
|
|
||||||
@@ -96,7 +96,20 @@
|
|||||||
- name: Get Node Modules
|
- name: Get Node Modules
|
||||||
become: true
|
become: true
|
||||||
become_user: minecraft
|
become_user: minecraft
|
||||||
npm: path=/usr/games/minecraft state=present production=true
|
npm:
|
||||||
|
path: /usr/games/minecraft
|
||||||
|
state: present
|
||||||
|
production: true
|
||||||
|
notify: Restart mineos
|
||||||
|
|
||||||
|
- name: Install PAM Module for MineOS Authentication
|
||||||
|
become: true
|
||||||
|
become_user: minecraft
|
||||||
|
npm:
|
||||||
|
name: authenticate-pam
|
||||||
|
path: /usr/games/minecraft
|
||||||
|
state: present
|
||||||
|
production: true
|
||||||
notify: Restart mineos
|
notify: Restart mineos
|
||||||
|
|
||||||
- name: Link to executable
|
- name: Link to executable
|
||||||
|
|||||||
Reference in New Issue
Block a user