diff --git a/.config/ansible-lint-ignore.txt b/.config/ansible-lint-ignore.txt index 4059549..c0e0ac6 100644 --- a/.config/ansible-lint-ignore.txt +++ b/.config/ansible-lint-ignore.txt @@ -1,7 +1,8 @@ playbook.yml yaml[trailing-spaces] -playbook.yml action-core +playbook.yml fqcn[action-core] playbook.yml yaml[indentation] playbook.yml yaml[new-line-at-end-of-file] playbook.yml yaml[line-length] playbook.yml package-latest -destroyinf.yml fqcn[action-core] \ No newline at end of file +destroyinf.yml fqcn[action-core] +destroyinf.yml yaml[trailing-spaces] \ No newline at end of file diff --git a/aws_ec2.yml b/aws_ec2.yml index ec1afc7..784927b 100644 --- a/aws_ec2.yml +++ b/aws_ec2.yml @@ -3,4 +3,5 @@ regions: - ap-southeast-1 filter: - tag:cicd: sys1 \ No newline at end of file + tag:cicd: sys1 + \ No newline at end of file diff --git a/destroyinf.yml b/destroyinf.yml index 7503b17..8aa602a 100644 --- a/destroyinf.yml +++ b/destroyinf.yml @@ -2,7 +2,7 @@ - name: My first play hosts: all become: true - + pre_tasks: - name: Clean and Remove @@ -15,4 +15,5 @@ - name: Install Apache apt: name: apache2 - state: absent \ No newline at end of file + state: absent + \ No newline at end of file diff --git a/playbook.yml b/playbook.yml index 7ba95ac..aefbc07 100644 --- a/playbook.yml +++ b/playbook.yml @@ -24,6 +24,7 @@ - name: Install Docker Prerequisites shell: | + set -o pipefail sudo apt-get install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc