Skip to content

Commit

Permalink
enable yamllint truthy
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaassssiiee committed Sep 10, 2020
1 parent 711f4dd commit 7c176c5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,3 @@ rules:
new-lines:
type: unix
trailing-spaces: enable
truthy: disable
6 changes: 3 additions & 3 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ lint:
platforms:
- name: base-git-centos6
image: centos:6
privileged: True
privileged: true
- name: base-git-centos7
image: milcom/centos7-systemd
privileged: True
privileged: true
- name: base-git-ubuntu
image: ubuntu
privileged: True
privileged: true
provisioner:
name: ansible
config_options:
Expand Down
10 changes: 5 additions & 5 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@
- base_git

- name: Install Git software collection
become: yes
become: true
when: collections_enabled|bool and ansible_os_family == 'RedHat'
yum:
name: "{{ base_git_rpms }}"
state: present
update_cache: yes
update_cache: true
register: rhgit_install
until: rhgit_install is success
retries: 3
Expand Down Expand Up @@ -96,12 +96,12 @@
- git

- name: Install Git from yum repo
become: ye
become: true
when: not collections_enabled|bool or rhgit_install is failed
yum:
name: git
state: present
update_cache: yes
update_cache: true
register: network_access
until: network_access is success
retries: 10
Expand All @@ -111,7 +111,7 @@
- base_git

- name: Install Git from apt repo
become: yes
become: true
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
apt:
name: git
Expand Down

0 comments on commit 7c176c5

Please sign in to comment.