Skip to content

Commit

Permalink
fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
KevJimenez committed Feb 1, 2024
1 parent ed21853 commit 5861e9b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 36 deletions.
1 change: 0 additions & 1 deletion .config/ansible-lint-ignore.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
playbook.yml yaml[trailing-spaces]
playbook.yml fqcn[action-core]
playbook.yml yaml[indentation]
playbook.yml yaml[line-length]
destroyinf.yml fqcn[action-core]
destroyinf.yml yaml[trailing-spaces]
70 changes: 35 additions & 35 deletions playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,43 +5,43 @@

Check warning on line 5 in playbook.yml

View workflow job for this annotation

GitHub Actions / Ansible Lint

yaml[trailing-spaces]

Trailing spaces
pre_tasks:

- name: Update and Upgrade
apt:
update_cache: true
upgrade: dist
- name: Update and Upgrade

Check warning on line 8 in playbook.yml

View workflow job for this annotation

GitHub Actions / Ansible Lint

fqcn[action-core]

Use FQCN for builtin module actions (apt).
apt:
update_cache: true
upgrade: dist

tasks:

- name: Install Apache
apt:
name: apache2
state: present

- name: Ensure apache is running
service:
name: apache2
state: started
- name: Install Apache

Check warning on line 15 in playbook.yml

View workflow job for this annotation

GitHub Actions / Ansible Lint

fqcn[action-core]

Use FQCN for builtin module actions (apt).
apt:
name: apache2
state: present

Check warning on line 19 in playbook.yml

View workflow job for this annotation

GitHub Actions / Ansible Lint

yaml[trailing-spaces]

Trailing spaces
- name: Ensure apache is running

Check warning on line 20 in playbook.yml

View workflow job for this annotation

GitHub Actions / Ansible Lint

fqcn[action-core]

Use FQCN for builtin module actions (service).
service:
name: apache2
state: started

- 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
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
changed_when: false

- name: Install Docker Packages
apt:
name:
- docker-ce
- docker-ce-cli
- containerd.io
- docker-buildx-plugin
- docker-compose-plugin
- name: Install Docker Prerequisites

Check warning on line 25 in playbook.yml

View workflow job for this annotation

GitHub Actions / Ansible Lint

fqcn[action-core]

Use FQCN for builtin module actions (shell).
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
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
changed_when: false

Check warning on line 38 in playbook.yml

View workflow job for this annotation

GitHub Actions / Ansible Lint

yaml[trailing-spaces]

Trailing spaces
- name: Install Docker Packages

Check warning on line 39 in playbook.yml

View workflow job for this annotation

GitHub Actions / Ansible Lint

fqcn[action-core]

Use FQCN for builtin module actions (apt).
apt:
name:
- docker-ce

Check failure on line 42 in playbook.yml

View workflow job for this annotation

GitHub Actions / Ansible Lint

yaml[indentation]

Wrong indentation: expected 10 but found 8
- docker-ce-cli
- containerd.io
- docker-buildx-plugin
- docker-compose-plugin
...

0 comments on commit 5861e9b

Please sign in to comment.