Skip to content

Commit

Permalink
chore: update ansible yaml (#327)
Browse files Browse the repository at this point in the history
Updates Ansible YAML based on linter finding(s).

Signed-off-by: Ryan Johnson <[email protected]>
  • Loading branch information
tenthirtyam committed Nov 1, 2022
1 parent ade02ad commit 078d5b5
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 21 deletions.
3 changes: 1 addition & 2 deletions ansible/ansible.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[defaults]
command_warnings = false
display_skipped_hosts = false
ansible_python_interpreter = /usr/bin/python3
ansible_python_interpreter = /usr/bin/python3
3 changes: 1 addition & 2 deletions ansible/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
-
become: "yes"
- become: "yes"
become_method: sudo
debugger: never
gather_facts: "yes"
Expand Down
3 changes: 2 additions & 1 deletion ansible/roles/base/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
--- ~
---
~
20 changes: 10 additions & 10 deletions ansible/roles/base/tasks/photon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
args:
warn: false
command: |
tdnf -y install \
minimal \
logrotate \
wget \
git \
unzip \
tar \
jq \
parted \
openssl-c_rehash
tdnf -y install \
minimal \
logrotate \
wget \
git \
unzip \
tar \
jq \
parted \
openssl-c_rehash
1 change: 0 additions & 1 deletion ansible/roles/base/tasks/sles.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

---
- name: "Installing additional packages."
zypper:
Expand Down
3 changes: 2 additions & 1 deletion ansible/roles/base/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
--- ~
---
~
4 changes: 2 additions & 2 deletions ansible/roles/clean/tasks/redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@
args:
warn: false
- name: "Cleaning the machine-id."
when: "ansible_facts['distribution_major_version'] <= \"8\""
when: 'ansible_facts[''distribution_major_version''] <= "8"'
shell: |
truncate -s 0 /etc/machine-id
rm /var/lib/dbus/machine-id
ln -s /etc/machine-id /var/lib/dbus/machine-id
args:
warn: false
- name: "Cleaning the machine-id."
when: "ansible_facts['distribution_major_version'] >= \"9\""
when: 'ansible_facts[''distribution_major_version''] >= "9"'
shell: |
truncate -s 0 /etc/machine-id
args:
Expand Down
3 changes: 1 addition & 2 deletions ansible/roles/clean/tasks/sles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
args:
warn: false
- name: "Cleaning the machine-id."
when: "ansible_facts['distribution_major_version'] >= \"9\""
shell: |
truncate -s 0 /etc/machine-id
args:
Expand All @@ -55,4 +54,4 @@
shell: |
sync && sync
args:
warn: false
warn: false

0 comments on commit 078d5b5

Please sign in to comment.