From f2d367493bbe737b721f4e5a31c10a48d604fdaa Mon Sep 17 00:00:00 2001 From: thiuda Date: Fri, 22 Apr 2022 15:16:42 +0200 Subject: [PATCH] ignore fqcn-builtins lint errors for builtin actions --- .ansible-lint | 3 +++ tasks/main.yml | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 .ansible-lint diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 0000000..2aea330 --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,3 @@ +--- +skip_list: + - fqcn-builtins diff --git a/tasks/main.yml b/tasks/main.yml index 49357ba..3b5a5a6 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,6 +1,6 @@ - name: Ensure packages are installed become: true - ansible.builtin.apt: + apt: name: - python3-pip - apt-transport-https @@ -12,13 +12,13 @@ - name: Trust dockers GPG key become: true - ansible.builtin.apt_key: + apt_key: url: https://download.docker.com/linux/debian/gpg state: present - name: Ensure docker repository is available become: true - ansible.builtin.apt_repository: + apt_repository: repo: deb https://download.docker.com/linux/debian buster stable state: present # notify: Update apt cache @@ -28,7 +28,7 @@ - name: Ensure packages are installed become: true - ansible.builtin.apt: + apt: name: - docker-ce - docker-ce-cli @@ -39,14 +39,14 @@ - name: Install docker python module become: true - ansible.builtin.pip: + pip: executable: pip3 name: - docker - name: Change docker root become: true - ansible.builtin.template: + template: src: templates/daemon.json.j2 dest: /etc/docker/daemon.json mode: 0644