fix: exclude deployment host from all playbooks where it does not need to be included (and can cause issues)

This commit is contained in:
Bertrand Lanson 2024-07-11 23:28:44 +02:00
parent b7bd59d5fa
commit 01d91eae57
Signed by: lanson
SSH Key Fingerprint: SHA256:/nqc6HGqld/PS208F6FUOvZlUzTS0rGpNNwR5O2bQBw
3 changed files with 13 additions and 4 deletions

View File

@ -1,10 +1,19 @@
---
# hashistack prepare playbook
- name: "Bootstrap"
hosts: all
hosts: all, !deployment
gather_facts: true
become: true
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"
ansible.builtin.include_role:
name: ednz_cloud.manage_pip_packages
@ -39,7 +48,7 @@
install_docker_users:
- "{{ ansible_user }}"
install_docker_daemon_options: {}
#! when: "'nomad_agents' in group_names"
when: "'nomad_agents' in group_names"
- name: "Ensure /etc/localtime exists"
ansible.builtin.file:

View File

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

View File

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