Added basic documentation server

This commit is contained in:
2024-02-11 15:26:38 -06:00
parent 065d240468
commit c93df6d0d3
10 changed files with 111 additions and 8 deletions
+8 -4
View File
@@ -3,6 +3,9 @@
#
#
- name: Determine OS variant
register: variant
ansible.builtin.shell: grep VARIANT_ID /etc/os-release | sed 's/VARIANT_ID=//g'
- name: Create /etc/sysusers.d directory
become: yes
become_method: sudo
@@ -17,6 +20,7 @@
src: parsec.conf
dest: /etc/sysusers.d/parsec.conf
setype: etc_t
when: variant.stdout=="iot"
- name: Enable Cockpit Service
become: yes
@@ -33,7 +37,7 @@
service: cockpit
permanent: yes
state: enabled
when: coreos==True
when: variant.stdout=="iot"
- name: Enable Avahi Service
become: yes
@@ -50,7 +54,7 @@
service: mdns
permanent: yes
state: enabled
when: coreos==True
when: variant.stdout=="iot"
- name: Modify nsswitch file for mdns lookups
become: yes
@@ -61,11 +65,11 @@
line: 'hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname'
notify: restart_avahi
- name: Set hostname to bitb0x
- name: Set hostname to {{ hostname }}
become: yes
become_method: sudo
ansible.builtin.hostname:
name: bitb0x
name: "{{ hostname }}"
notify: restart_avahi
- name: Enable Zerotier