fix(playbooks): fixed the way hosts are targeted by playbooks
This commit is contained in:
parent
a577af133d
commit
e34e71b9ef
5 changed files with 42 additions and 32 deletions
1
TODO
1
TODO
|
@ -5,3 +5,4 @@
|
||||||
- secure files
|
- secure files
|
||||||
- setup fstab with sshfs, noatime
|
- setup fstab with sshfs, noatime
|
||||||
- add smartmontools & conf
|
- add smartmontools & conf
|
||||||
|
- auto-add ssh hosts to known_hosts
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
- hosts: main_desktop
|
|
||||||
tasks:
|
|
||||||
- name: include common role
|
|
||||||
ansible.builtin.include_role:
|
|
||||||
name: nullified.infrastructure.common
|
|
||||||
- name: include workstation role
|
|
||||||
ansible.builtin.include_role:
|
|
||||||
name: nullified.infrastructure.workstation
|
|
||||||
- name: include development role
|
|
||||||
ansible.builtin.include_role:
|
|
||||||
name: nullified.infrastructure.development
|
|
||||||
- name: include security role
|
|
||||||
ansible.builtin.include_role:
|
|
||||||
name: nullified.infrastructure.security
|
|
||||||
- name: include gaming role
|
|
||||||
ansible.builtin.include_role:
|
|
||||||
name: nullified.infrastructure.gaming
|
|
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
- hosts: server
|
|
||||||
tasks:
|
|
||||||
- name: include common role
|
|
||||||
ansible.builtin.include_role:
|
|
||||||
name: nullified.infrastructure.common
|
|
||||||
- name: include security role
|
|
||||||
ansible.builtin.include_role:
|
|
||||||
name: nullified.infrastructure.security
|
|
||||||
- name: include server role
|
|
||||||
ansible.builtin.include_role:
|
|
||||||
name: nullified.infrastructure.server
|
|
|
@ -5,5 +5,16 @@
|
||||||
vars_files: ../inventory/vault.yml
|
vars_files: ../inventory/vault.yml
|
||||||
tasks:
|
tasks:
|
||||||
- include_vars: ../inventory/vault.yml
|
- include_vars: ../inventory/vault.yml
|
||||||
|
- name: include common role
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: nullified.infrastructure.common
|
||||||
|
- name: include security role
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: nullified.infrastructure.security
|
||||||
|
|
||||||
- ansible.builtin.import_playbook: nullified.infrastructure.server
|
- name: setup servers
|
||||||
|
hosts: external:&server
|
||||||
|
tasks:
|
||||||
|
- name: include server role
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: nullified.infrastructure.server
|
||||||
|
|
|
@ -5,5 +5,33 @@
|
||||||
vars_files: ../inventory/vault.yml
|
vars_files: ../inventory/vault.yml
|
||||||
tasks:
|
tasks:
|
||||||
- include_vars: ../inventory/vault.yml
|
- include_vars: ../inventory/vault.yml
|
||||||
|
- name: include common role
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: nullified.infrastructure.common
|
||||||
|
- name: include security role
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: nullified.infrastructure.security
|
||||||
|
|
||||||
- ansible.builtin.import_playbook: nullified.infrastructure.main_desktop
|
- name: setup servers
|
||||||
|
hosts: internal:&server
|
||||||
|
tasks:
|
||||||
|
- name: include server role
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: nullified.infrastructure.server
|
||||||
|
|
||||||
|
- name: setup workstations
|
||||||
|
hosts: internal:&workstation
|
||||||
|
tasks:
|
||||||
|
- name: include workstation role
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: nullified.infrastructure.workstation
|
||||||
|
- name: include development role
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: nullified.infrastructure.development
|
||||||
|
|
||||||
|
- name: setup gaming tools
|
||||||
|
hosts: internal:&gaming
|
||||||
|
tasks:
|
||||||
|
- name: include gaming role
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: nullified.infrastructure.gaming
|
||||||
|
|
Loading…
Add table
Reference in a new issue