Changeset 15389 for main/waeup-ansible
- Timestamp:
- 5 Apr 2019, 23:44:20 (6 years ago)
- Location:
- main/waeup-ansible
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup-ansible/bootstrap.yml
r14325 r15389 15 15 # accounts are active. 16 16 permit_ssh_root: true 17 # Allow admin users below to become root w/o entering password? 18 permit_become_root_no_password: true 17 19 # create hashed passwords like this: 18 20 # $ diceware -d '-' -n 6 --no-caps | tee mypw | mkpasswd -s --method=sha-512 >> mypw 19 21 admin_users: 20 uli :21 hashed_pw: "$6$ W3DjhWuk/dDzw2F$ozaXblaUYnEX6NiS9jg.NYFelyPIV8ySxDJGNwbPpTd.oAnmA.754pntuGT1XP.cAcpkCI5b9zWSgOQ09f5HG1"22 ulif: 23 hashed_pw: "$6$iuoXy2wO3elWM6d2$NR/ayKF58q0Bm0BdsR.g.Nt5xYzD0s0t17ZjrYaRpY7nkRekjgHTnqw849pK9FdynmNZAioW6oQBQx3BB5kcd0" 22 24 23 25 roles: -
main/waeup-ansible/hosts
r14905 r15389 4 4 [vhosts] 5 5 # localhost:2323 ansible_user=ubuntu ansible_ssh_pass=2d20eb81c5dbe0167f27151c 6 v1.waeup.org:2323 ansible_user=ubuntu 6 # at least from ubuntu 18.04 on, vagrant is the default user again. 7 v1.waeup.org:2322 ansible_user=ubuntu 7 8 v2.waeup.org:2323 ansible_user=ubuntu 8 v3.waeup.org:2324 ansible_user= ubuntu9 v3.waeup.org:2324 ansible_user=vagrant 9 10 v4.waeup.org:2325 ansible_user=ubuntu 10 11 v5.waeup.org:2326 ansible_user=ubuntu 12 v6.waeup.org:2327 ansible_user=vagrant 11 13 12 14 13 15 [bootstrapped] 16 gf5.gnufix.de 17 gf6.gnufix.de 18 gf9.gnufix.de 14 19 h8.waeup.org 15 20 -
main/waeup-ansible/playbook-post-reboot.yml
r15356 r15389 97 97 args: 98 98 chdir: /home/vhosts/vhost5 99 - name: Start vagrant vhost6 100 become_user: vhosts 101 command: vagrant up 102 args: 103 chdir: /home/vhosts/vhost6 -
main/waeup-ansible/roles/openssh/tasks/main.yml
r13994 r15389 8 8 regexp={{ item.regexp }} 9 9 with_items: 10 - { regexp: '^#HostKey /etc/ssh/ssh_host_rsa_key', 11 line: 'HostKey /etc/ssh/ssh_host_rsa_key' } 10 12 - { regexp: '^HostKey /etc/ssh/ssh_host_dsa_key', 11 13 line: '# HostKey /etc/ssh/ssh_host_dsa_key' } 12 14 - { regexp: '^HostKey /etc/ssh/ssh_host_ecdsa_key', 13 15 line: '# HostKey /etc/ssh/ssh_host_ecdsa_key' } 16 - { regexp: '^#HostKey /etc/ssh/ssh_host_ed25519_key', 17 line: 'HostKey /etc/ssh/ssh_host_ed25519_key' } 14 18 notify: "restart sshd" 15 19 … … 23 27 notify: "restart sshd" 24 28 25 - name: "sshd_config - set secure ciphers from bettercrypto.org" 29 - name: "sshd_config - set secure ciphers from bettercrypto.org (Ubuntu)" 30 when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version is version('16', '<=') 31 26 32 lineinfile: 27 33 dest=/etc/ssh/sshd_config … … 30 36 notify: "restart sshd" 31 37 32 - name: "sshd_config - set secure MACs from bettercrypto.org" 38 - name: "sshd_config - set secure ciphers from bettercrypto.org (Debian)" 39 when: ansible_distribution == 'Debian' 40 33 41 lineinfile: 34 42 dest=/etc/ssh/sshd_config 35 line=' MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-ripemd160'43 line='Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr' 36 44 state=present 37 45 notify: "restart sshd" 38 46 39 - name: "sshd_config - set secure kex algos from bettercrypto.org" 47 - name: "sshd_config - set secure MACs from bettercrypto.orgi (Ubuntu)" 48 when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version is version('16', '<=') 49 lineinfile: 50 dest=/etc/ssh/sshd_config 51 line='MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256' 52 state=present 53 notify: "restart sshd" 54 55 - name: "sshd_config - set secure MACs from bettercrypto.org and ssh-audit.py (Debian)" 56 when: ansible_distribution == 'Debian' 57 lineinfile: 58 dest=/etc/ssh/sshd_config 59 line='MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com' 60 state=present 61 notify: "restart sshd" 62 63 64 - name: "sshd_config - set secure kex algos from bettercrypto.org (Ubuntu)" 65 when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version is version('16', '<=') 40 66 lineinfile: 41 67 dest=/etc/ssh/sshd_config 42 68 line='KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1' 69 state=present 70 notify: "restart sshd" 71 72 - name: "sshd_config - set secure kex algos from bettercrypto.org (Debian)" 73 when: ansible_distribution == 'Debian' 74 lineinfile: 75 dest=/etc/ssh/sshd_config 76 line='KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512' 43 77 state=present 44 78 notify: "restart sshd"
Note: See TracChangeset for help on using the changeset viewer.