diff options
author | Peter Mikus <pmikus@cisco.com> | 2022-07-07 10:31:16 +0000 |
---|---|---|
committer | Peter Mikus <peter.mikus@protonmail.ch> | 2022-07-07 13:11:37 +0000 |
commit | 2720dc186a1e488833533bfa8e14bfaa578aabca (patch) | |
tree | 18f2f75ab8409c20ac500c657fad64168cff5914 /fdio.infra.ansible/roles/consul/tasks | |
parent | 9f603617b10a447c59cd17110a89f67a1bf42d6e (diff) |
feat(ansible): Migrate Ubuntu Jammy II
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: I43c86ab3232a382e7cc9010fb04a0ca269b24e77
Diffstat (limited to 'fdio.infra.ansible/roles/consul/tasks')
-rw-r--r-- | fdio.infra.ansible/roles/consul/tasks/main.yaml | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/fdio.infra.ansible/roles/consul/tasks/main.yaml b/fdio.infra.ansible/roles/consul/tasks/main.yaml index 4e229714b7..1d6bcc0b0b 100644 --- a/fdio.infra.ansible/roles/consul/tasks/main.yaml +++ b/fdio.infra.ansible/roles/consul/tasks/main.yaml @@ -1,14 +1,22 @@ --- # file: roles/consul/tasks/main.yaml -- name: Install Dependencies +- name: Inst - Update Repositories Cache + apt: + update_cache: true + when: + - ansible_os_family == 'Debian' + tags: + - consul-inst-package + +- name: Inst - Dependencies apt: name: "{{ packages | flatten(levels=1) }}" state: "present" cache_valid_time: 3600 install_recommends: false when: - - ansible_distribution|lower == 'ubuntu' + - ansible_os_family == 'Debian' tags: - consul-inst-dependencies @@ -155,7 +163,7 @@ name: "systemd-resolved" state: "{{ systemd_resolved_state }}" when: - - nomad_service_mgr == "systemd" + - consul_service_mgr == "systemd" tags: - consul-conf @@ -170,8 +178,9 @@ - "Restart Consul" - "Restart Nomad" when: - - nomad_service_mgr == "systemd" + - consul_service_mgr == "systemd" tags: - consul-conf -- meta: flush_handlers +- name: Meta - Flush handlers + meta: flush_handlers |