From d759489747495f0c71094fa12d587344bf43c023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Thu, 30 Dec 2021 09:38:20 +0000 Subject: playbooks: Move playbook files to root directory --- playbooks/files | 1 - playbooks/prerequisites.yml | 12 --------- playbooks/site.yml | 63 --------------------------------------------- playbooks/templates | 1 - playbooks/workstation.yml | 10 ------- site.all.yml | 63 +++++++++++++++++++++++++++++++++++++++++++++ site.prerequisites.yml | 12 +++++++++ site.workstation.yml | 10 +++++++ 8 files changed, 85 insertions(+), 87 deletions(-) delete mode 120000 playbooks/files delete mode 100644 playbooks/prerequisites.yml delete mode 100644 playbooks/site.yml delete mode 120000 playbooks/templates delete mode 100644 playbooks/workstation.yml create mode 100644 site.all.yml create mode 100644 site.prerequisites.yml create mode 100644 site.workstation.yml diff --git a/playbooks/files b/playbooks/files deleted file mode 120000 index feb1228..0000000 --- a/playbooks/files +++ /dev/null @@ -1 +0,0 @@ -../files \ No newline at end of file diff --git a/playbooks/prerequisites.yml b/playbooks/prerequisites.yml deleted file mode 100644 index 3178164..0000000 --- a/playbooks/prerequisites.yml +++ /dev/null @@ -1,12 +0,0 @@ -- hosts: all - gather_facts: false - tasks: - - name: bruteforce python installation with all packages possiblity # noqa: no-changed-when - raw: | - ! pkg_add python3 && - ! pkg install python3 && - apk add python - register: result - ignore_errors: true - failed_when: result.rc not in [0, 1] - poll: 0 diff --git a/playbooks/site.yml b/playbooks/site.yml deleted file mode 100644 index dd11097..0000000 --- a/playbooks/site.yml +++ /dev/null @@ -1,63 +0,0 @@ -- hosts: all - roles: - - role: wireguard - tags: - - role_wireguard - - never - -- hosts: servers - roles: - - role: sshd - tags: role_sshd - - role: prometheus - tags: role_prometheus - - role: loki - tags: role_loki - -- hosts: dc0 - roles: - - role: pf - tags: role_pf - - role: relayd - tags: role_relayd - - role: acme - tags: role_acme - - role: znc - tags: role_znc - -- hosts: stack0 - roles: - - role: nfsd - tags: role_nfsd - -- hosts: stack0-* - roles: - - role: nfsclient - tags: role_nfsclient - -- hosts: stack0-dc1 - roles: - - role: grafana - tags: role_grafana - -- hosts: stack0-dev0,stack0-dc1 - roles: - - role: cgit - tags: role_cgit - -- hosts: stack0-cld0 - roles: - - role: miniflux - tags: role_miniflux - -- hosts: servers - roles: - - role: httpd - tags: role_httpd - -- hosts: stack0 - roles: - - role: vmm - tags: - - role_vmm - - never diff --git a/playbooks/templates b/playbooks/templates deleted file mode 120000 index 564a409..0000000 --- a/playbooks/templates +++ /dev/null @@ -1 +0,0 @@ -../templates \ No newline at end of file diff --git a/playbooks/workstation.yml b/playbooks/workstation.yml deleted file mode 100644 index 65caed7..0000000 --- a/playbooks/workstation.yml +++ /dev/null @@ -1,10 +0,0 @@ -- hosts: localhost - - pre_tasks: - - name: verify running as root - fail: - when: ansible_user_id != "root" - tags: always - - roles: - - role: workstation diff --git a/site.all.yml b/site.all.yml new file mode 100644 index 0000000..dd11097 --- /dev/null +++ b/site.all.yml @@ -0,0 +1,63 @@ +- hosts: all + roles: + - role: wireguard + tags: + - role_wireguard + - never + +- hosts: servers + roles: + - role: sshd + tags: role_sshd + - role: prometheus + tags: role_prometheus + - role: loki + tags: role_loki + +- hosts: dc0 + roles: + - role: pf + tags: role_pf + - role: relayd + tags: role_relayd + - role: acme + tags: role_acme + - role: znc + tags: role_znc + +- hosts: stack0 + roles: + - role: nfsd + tags: role_nfsd + +- hosts: stack0-* + roles: + - role: nfsclient + tags: role_nfsclient + +- hosts: stack0-dc1 + roles: + - role: grafana + tags: role_grafana + +- hosts: stack0-dev0,stack0-dc1 + roles: + - role: cgit + tags: role_cgit + +- hosts: stack0-cld0 + roles: + - role: miniflux + tags: role_miniflux + +- hosts: servers + roles: + - role: httpd + tags: role_httpd + +- hosts: stack0 + roles: + - role: vmm + tags: + - role_vmm + - never diff --git a/site.prerequisites.yml b/site.prerequisites.yml new file mode 100644 index 0000000..3178164 --- /dev/null +++ b/site.prerequisites.yml @@ -0,0 +1,12 @@ +- hosts: all + gather_facts: false + tasks: + - name: bruteforce python installation with all packages possiblity # noqa: no-changed-when + raw: | + ! pkg_add python3 && + ! pkg install python3 && + apk add python + register: result + ignore_errors: true + failed_when: result.rc not in [0, 1] + poll: 0 diff --git a/site.workstation.yml b/site.workstation.yml new file mode 100644 index 0000000..65caed7 --- /dev/null +++ b/site.workstation.yml @@ -0,0 +1,10 @@ +- hosts: localhost + + pre_tasks: + - name: verify running as root + fail: + when: ansible_user_id != "root" + tags: always + + roles: + - role: workstation -- cgit v1.2.3