aboutsummaryrefslogtreecommitdiffstats
path: root/playbooks/common.yml
diff options
context:
space:
mode:
authorStonewall Jackson <stonewall@sacredheartsc.com>2023-02-04 01:23:43 -0500
committerStonewall Jackson <stonewall@sacredheartsc.com>2023-02-04 01:52:13 -0500
commit0261e875679f1bf63c8d689da7fc7e014597885d (patch)
tree3f19cd74a0c1070944f75437f30b098d6ef2ffcb /playbooks/common.yml
downloadselfhosted-0261e875679f1bf63c8d689da7fc7e014597885d.tar.gz
selfhosted-0261e875679f1bf63c8d689da7fc7e014597885d.zip
initial commit
Diffstat (limited to 'playbooks/common.yml')
-rw-r--r--playbooks/common.yml112
1 files changed, 112 insertions, 0 deletions
diff --git a/playbooks/common.yml b/playbooks/common.yml
new file mode 100644
index 0000000..e96be0b
--- /dev/null
+++ b/playbooks/common.yml
@@ -0,0 +1,112 @@
+- hosts: '{{ hostlist | default("el") }}'
+ gather_facts: no
+ tags: common
+ roles:
+ - role: proxmox_instance
+ when: '"proxmox_instances" in group_names'
+ tags: proxmox
+
+ - role: dns_records
+ when: not (bootstrap | default(false))
+ tags: dns
+
+ - role: gather_facts
+ when: not ansible_facts
+ tags: always
+
+ - role: udev
+ when: not ansible_virtualization_tech_guest
+ tags: udev
+
+ - role: root_authorized_keys
+ tags: authorized_keys
+
+ - role: root_password
+ tags: root_password
+
+ - role: polkit
+ tags: polkit
+
+ - role: grub
+ tags: grub
+
+ - role: sudo
+ tags: sudo,sudoers
+
+ - role: hostname
+ tags: hostname
+
+ - role: timezone
+ tags: timezone
+
+ - role: journald
+ tags: journald
+
+ - role: yum_disable_default_repos
+ when: '"yum_mirrors" not in group_names'
+
+ - role: yum
+ yum_repositories:
+ - rocky-baseos
+ - rocky-appstream
+ - rocky-extras
+ when:
+ - '"yum_mirrors" not in group_names'
+ - not (bootstrap | default(false))
+ tags: yum
+
+ - role: dnsmasq
+ when: '"freeipa_servers" not in group_names'
+ tags: dnsmasq
+
+ - role: locale
+ tags: locale
+
+ - role: selinux
+ tags: selinux
+
+ - role: qemu_guest_agent
+ when: '"kvm" in ansible_virtualization_tech_guest'
+ tags: qemu
+
+ - role: firewalld
+ tags: firewalld
+
+ - role: chrony
+ tags: chrony,ntp
+
+ - role: dnf_automatic
+ tags: yum
+
+ - role: ssh
+ tags: ssh
+
+ - role: tuned
+ tags: tuned
+
+ - role: motd
+ tags: motd
+
+ - role: packages
+ tags: packages
+
+ - role: postfix_client
+ when: '"mail_servers" not in group_names'
+ tags: postfix,mail
+
+ - role: freeipa_client
+ when: '"freeipa_servers" not in group_names'
+ tags: freeipa
+
+ - role: rsyslog_client
+ when:
+ - '"syslog_servers" not in group_names'
+ - not (bootstrap | default(false))
+ tags: rsyslog
+
+ - role: nagios_client
+ when:
+ - (group_names | intersect(nagios_excluded_groups) | length) == 0
+ - '"yum_mirrors" not in group_names'
+ - not (bootstrap | default(false))
+ tags: nagios