cisco-ansible

ansible scripts for cisco instances
Log | Files | Refs | git clone https://git.ne02ptzero.me/git/cisco-ansible

commit 734ecb364c362564c041c4f6712c2bedcf4a214f
parent 0257b2b00774aca55b0960755458d0648476b56f
Author: Louis Solofrizzo <louis@ne02ptzero.me>
Date:   Sun, 24 Mar 2019 19:38:53 +0100

Fix: Working os conditions

Signed-off-by: Louis Solofrizzo <louis@ne02ptzero.me>

Diffstat:
Minit.yml | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/init.yml b/init.yml @@ -1,16 +1,19 @@ - name: Install ssh hosts: localhost tasks: + - name: Debug + debug: + var: ansible_facts['os_family'] - name: Install sshd package: name: openssh-server state: present - when: ansible_facts['os_family'] == "Debian" + when: (ansible_facts['os_family'] == "Debian") or (ansible_facts['os_family'] == "RedHat") - name: Install sshd package: name: openssh state: present - when: ansible_facts['os_family'] == "Archlinux" + when: (ansible_facts['os_family'] == "Archlinux") or (ansible_facts['os_family'] == "Alpine") - name: Add SSH proxy SSH key authorized_key: user: root