Compare commits

...

2 Commits

Author SHA1 Message Date
8bf82336f8
fix: more deployment host exclusion
All checks were successful
development / Check commit compliance (push) Successful in 6s
2024-07-11 23:29:17 +02:00
01d91eae57
fix: exclude deployment host from all playbooks where it does not need to be included (and can cause issues) 2024-07-11 23:28:44 +02:00
4 changed files with 14 additions and 5 deletions

View File

@ -1,10 +1,19 @@
--- ---
# hashistack prepare playbook # hashistack prepare playbook
- name: "Bootstrap" - name: "Bootstrap"
hosts: all hosts: all, !deployment
gather_facts: true gather_facts: true
become: true become: true
tasks: tasks:
- name: "Isntall unzip with package manager"
ansible.builtin.include_role:
name: ednz_cloud.manage_apt_packages
vars:
manage_apt_packages_list:
- name: unzip
version: latest
state: present
- name: "Install hvac library with pip" - name: "Install hvac library with pip"
ansible.builtin.include_role: ansible.builtin.include_role:
name: ednz_cloud.manage_pip_packages name: ednz_cloud.manage_pip_packages
@ -39,7 +48,7 @@
install_docker_users: install_docker_users:
- "{{ ansible_user }}" - "{{ ansible_user }}"
install_docker_daemon_options: {} install_docker_daemon_options: {}
#! when: "'nomad_agents' in group_names" when: "'nomad_agents' in group_names"
- name: "Ensure /etc/localtime exists" - name: "Ensure /etc/localtime exists"
ansible.builtin.file: ansible.builtin.file:

View File

@ -1,7 +1,7 @@
--- ---
# hashistack deployment playbook # hashistack deployment playbook
- name: "Deploy" - name: "Deploy"
hosts: all hosts: all, !deployment
strategy: linear strategy: linear
gather_facts: true gather_facts: true
become: true become: true

View File

@ -1,7 +1,7 @@
--- ---
# hashistack generate certificates playbook # hashistack generate certificates playbook
- name: "Generate certificates" - name: "Generate certificates"
hosts: all hosts: all, !deployment
strategy: linear strategy: linear
gather_facts: true gather_facts: true
become: true become: true

View File

@ -1,7 +1,7 @@
--- ---
# hashistack deployment playbook # hashistack deployment playbook
- name: "Preflight" - name: "Preflight"
hosts: all hosts: all, !deployment
strategy: linear strategy: linear
gather_facts: true gather_facts: true
become: true become: true