Skip to content

Commit

Permalink
https://github.com/ansible/ansible-lint/pull/2527
Browse files Browse the repository at this point in the history
  • Loading branch information
hswong3i committed Oct 2, 2022
1 parent efd4e01 commit 5a62577
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 13 deletions.
15 changes: 10 additions & 5 deletions playbooks/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
ignore_unreachable: true
tasks:
- name: rm -rf /var/cache/ansible/*
ansible.builtin.raw: |
ansible.builtin.raw:
cmd: |
set -eu
rm -rf /var/cache/ansible/*
rm -rf /root/.cache/*
Expand All @@ -33,7 +34,8 @@
failed_when: false

- name: debian | apt-get -y clean
ansible.builtin.raw: |
ansible.builtin.raw:
cmd: |
set -eu
apt-get -y autoremove
apt-get -y autoclean
Expand All @@ -45,7 +47,8 @@
failed_when: false

- name: redhat | yum clean all
ansible.builtin.raw: |
ansible.builtin.raw:
cmd: |
set -eu
yum clean all
rm -rf /var/cache/yum/*
Expand All @@ -55,7 +58,8 @@
failed_when: false

- name: suse | zypper clean --all
ansible.builtin.raw: |
ansible.builtin.raw:
cmd: |
set -eu
zypper clean --all
rm -rf /var/cache/zypper/*
Expand All @@ -65,7 +69,8 @@
failed_when: false

- name: redhat | subscription-manager unregister
ansible.builtin.raw: |
ansible.builtin.raw:
cmd: |
set -eu
subscription-manager remove --all
subscription-manager unregister
Expand Down
3 changes: 2 additions & 1 deletion playbooks/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@
- { dest: "/usr/local/bin/start-gitlab.sh", mode: "0755" }

- name: mkfifo
ansible.builtin.command: mkfifo {{ item.name }}
ansible.builtin.command:
cmd: mkfifo {{ item.name }}
loop:
- { name: "/opt/gitlab/sv/sshd/supervise/ok" }
- { name: "/opt/gitlab/sv/sshd/log/supervise/ok" }
Expand Down
2 changes: 1 addition & 1 deletion roles/ansible
2 changes: 1 addition & 1 deletion roles/catatonit
2 changes: 1 addition & 1 deletion roles/gitlab_ce
2 changes: 1 addition & 1 deletion roles/gosu
2 changes: 1 addition & 1 deletion roles/locales
2 changes: 1 addition & 1 deletion roles/python
2 changes: 1 addition & 1 deletion roles/timezone

0 comments on commit 5a62577

Please sign in to comment.