From 69a58920c4e692e44c62422c406a6a690248fe27 Mon Sep 17 00:00:00 2001 From: binary Date: Thu, 11 Mar 2021 20:32:42 +0100 Subject: Fail free all-host-basic playbook. --- roles/repositories/vars/main.yml | 2 +- roles/sshd/tasks/main.yml | 2 ++ roles/tools/tasks/main.yml | 4 ++-- roles/tools/vars/main.yml | 2 -- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'roles') diff --git a/roles/repositories/vars/main.yml b/roles/repositories/vars/main.yml index dd195d9..8218b7d 100644 --- a/roles/repositories/vars/main.yml +++ b/roles/repositories/vars/main.yml @@ -7,7 +7,7 @@ repositories_urls_openbsd: - https://mirror.ungleich.ch/mirror/openbsd -repositories__urls_alpine: +repositories_urls_alpine: - https://mirror.ungleich.ch/mirror/packages/alpine/latest-stable/main - https://mirror.ungleich.ch/mirror/packages/alpine/latest-stable/community - https://mirror.ungleich.ch/mirror/packages/alpine/edge/community/ diff --git a/roles/sshd/tasks/main.yml b/roles/sshd/tasks/main.yml index da5100e..4321270 100644 --- a/roles/sshd/tasks/main.yml +++ b/roles/sshd/tasks/main.yml @@ -15,6 +15,7 @@ - name: retrieve all existing users shell: cut -d ":" -f 1 /etc/passwd register: sshd_users + change_when: false - name: bind retrieved users output lines to list set_fact: @@ -53,6 +54,7 @@ register: sshd_homedirs when: item.path | dirname | basename in sshd_users loop: "{{ keys.files }}" + change_when: false loop_control: label: "{{ item.path | dirname | basename }}" diff --git a/roles/tools/tasks/main.yml b/roles/tools/tasks/main.yml index 84fe4cb..84badb9 100644 --- a/roles/tools/tasks/main.yml +++ b/roles/tools/tasks/main.yml @@ -4,7 +4,7 @@ --- -- name: install per distribution correspond tools +- name: install per distribution corresponding tools package: state: present name: "{{ tools_pkgs[ansible_distribution | lower] }}" @@ -12,5 +12,5 @@ - name: install global utils package: - name: "{{ tools_pkgs[common] }}" + name: "{{ tools_pkgs['common'] }}" state: present diff --git a/roles/tools/vars/main.yml b/roles/tools/vars/main.yml index c569299..f2c0942 100644 --- a/roles/tools/vars/main.yml +++ b/roles/tools/vars/main.yml @@ -21,7 +21,6 @@ tools_pkgs: - sshfs - tmux - wireguard-tools - - wireguard-virt freebsd: - fusefs-sshfs @@ -30,5 +29,4 @@ tools_pkgs: openbsd: - sshfs-fuse - - tmux - wireguard-tools -- cgit v1.2.3