diff --git a/.ansible-lint b/.ansible-lint index 399a7052..a9c6a729 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -5,6 +5,7 @@ exclude_paths: - tests/legacy-lxd/ - tests/ - files/cloud-init/ # Cloud-init files have special format requirements + - playbooks/ # These are task files included by other playbooks, not standalone playbooks skip_list: - 'package-latest' # Package installs should not use latest - needed for updates diff --git a/playbooks/cloud-pre.yml b/playbooks/cloud-pre.yml index f453a2db..a4224005 100644 --- a/playbooks/cloud-pre.yml +++ b/playbooks/cloud-pre.yml @@ -40,14 +40,14 @@ - block: - name: Generate the SSH private key - openssl_privatekey: + community.crypto.openssl_privatekey: path: "{{ SSH_keys.private }}" size: 4096 mode: "0600" type: RSA - name: Generate the SSH public key - openssl_publickey: + community.crypto.openssl_publickey: path: "{{ SSH_keys.public }}" privatekey_path: "{{ SSH_keys.private }}" format: OpenSSH diff --git a/roles/dns/handlers/main.yml b/roles/dns/handlers/main.yml index 79cca326..28cd0c3b 100644 --- a/roles/dns/handlers/main.yml +++ b/roles/dns/handlers/main.yml @@ -9,4 +9,3 @@ state: restarted daemon_reload: true when: ansible_distribution == 'Ubuntu' -