cisco-ansible

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

commit 200eff4aecbc83f15bab8fd20f297e55cda001ac
parent 734ecb364c362564c041c4f6712c2bedcf4a214f
Author: Louis Solofrizzo <louis@ne02ptzero.me>
Date:   Sun, 24 Mar 2019 20:33:15 +0100

Add: gentoo in the init playbook

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

Diffstat:
Minit.yml | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/init.yml b/init.yml @@ -14,12 +14,17 @@ name: openssh state: present when: (ansible_facts['os_family'] == "Archlinux") or (ansible_facts['os_family'] == "Alpine") + - name: Install sshd + portage: + name: net-misc/openssh + state: present + when: ansible_facts['os_family'] == "Gentoo" - name: Add SSH proxy SSH key authorized_key: user: root key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSNqv/JTWVmWWnmg0eTu3VDAHaeej7rXjl8iFtEt7vOpYSnJ4vkZji18Tyt6Eg6VBfRn6tw2wDx7xc2/BOLgqLYPOLic8K2uYCtzdGjvUAEiXvvmVol740XGm+0cn6EEWepJFBrTMNIQxSlj/7egVuj92J34TxfeF7rmhn0srCfbo589pXnjh0xxsrywediLb2Q6AMBfaWGaHCIBmi89WOuMI3IEnJDjHjYPFYE3pLiQNSSrHkRyyCGvCVw78oLn9bSrI+KGXzBnTkd2rroVlnvfDAbwmfhK+2PrOCxqia7fsbWiUCUpeWF0b06ZTEVdYx1QvI3aDUf+CDa8Q1hKpd sshportal" - name: Enable and Start sshd - systemd: + service: name: sshd state: started enabled: yes