A lot of updates

This commit is contained in:
2021-02-08 13:43:02 -05:00
parent 27a716cc66
commit d2ee346de5
10 changed files with 1638 additions and 78 deletions

View File

@@ -6,10 +6,12 @@
- "rhel-*-optional-rpms"
- "rhel-*-extras-rpms"
state: enabled
when: (ansible_os_family == "RedHat" and ansible_distribution_major_version <= "7")
- name: Ensure EPEL is available
yum:
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm
disable_gpg_check: true
state: present
- name: Install Development Tools
@@ -20,39 +22,37 @@
- name: Install MineOS Dependencies
become: true
yum:
name: ['bind-utils', 'screen',
'git', 'wget', 'java-1.8.0-openjdk-headless.x86_64', 'openssl', 'openssl-devel', 'rsync', 'rdiff-backup', 'pam-devel']
name: ['bind-utils', 'screen', 'git', 'wget', 'java-1.8.0-openjdk-headless.x86_64', 'openssl', 'openssl-devel', 'rsync', 'rdiff-backup', 'pam-devel']
state: present
enablerepo: epel
when: ansible_os_family == 'RedHat'
- name: enable LDAP enumeration in SSSD
ini_file:
section: domain/idm.toal.ca
path: /etc/sssd/sssd.conf
option: enumerate
value: yes
state: present
backup: yes # not required. Create a backup file including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly.
create: no
notify: restart_sssd
# - name: enable LDAP enumeration in SSSD
# ini_file:
# section: domain/idm.toal.ca
# path: /etc/sssd/sssd.conf
# option: enumerate
# value: yes
# state: present
# backup: yes # not required. Create a backup file including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly.
# create: no
# notify: restart_sssd
# - name: Create minecraft group
# become: true
# group: name=minecraft state=present system=yes
- name: Create minecraft group
become: true
group: name=minecraft state=present system=yes
# - name: Create minecraft user
# become: true
# user:
# name: minecraft
# comment: "Minecraft Server"
# createhome: yes
# system: yes
# groups: minecraft
# home: /var/games/minecraft
# shell: /bin/bash
# state: present
- name: Create minecraft user
become: true
user:
name: minecraft
comment: "Minecraft Server"
createhome: yes
system: yes
groups: minecraft
home: /var/games/minecraft
shell: /bin/bash
state: present
- name: Create Directories
@@ -112,14 +112,16 @@
creates: /etc/ssl/certs/mineos.key
notify: Restart mineos
# TODO: Lock versions of npm packages : userid to 0.3.1 and posix to 4.2.0
- name: Get new nan
npm:
name: nan
global: true
state: present
production: true
version: "2.14.0"
name: nan
global: true
state: present
production: true
version: "2.14.0"
unsafe_perm: true
- name: Get Node Modules
become: true
@@ -127,7 +129,8 @@
npm:
path: /usr/games/minecraft
state: present
production: true
production: true
unsafe_perm: true
notify: Restart mineos
- name: Install PAM Module for MineOS Authentication
@@ -138,6 +141,7 @@
path: /usr/games/minecraft
state: present
production: true
unsafe_perm: true
notify: Restart mineos
- name: Link to executable
@@ -170,4 +174,4 @@
zone: public
service: https
immediate: yes
permanent: true
permanent: true