Skip to content

Commit

Permalink
Fixed YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel Horne committed Jun 30, 2020
1 parent 84206c8 commit 99e9cac
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions ansible/roles/smoker/tasks/smoker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# Raspberry Pi machines - save needless writes to the SD card
# NetBSD has the architecture set to 'evbarm' instead of 'arm'
ansible_facts['architecture'] is not regex('arm$')
become: yes
become: true

- name: install CPAN smoking stuff on all machines
package:
Expand All @@ -33,7 +33,7 @@
# - lynx
# - perlbrew
- sqlite
become: yes
become: true

- name: install CPAN smoking stuff on Linux machines
package:
Expand All @@ -42,7 +42,7 @@
- tar
when:
ansible_facts['system'] == 'Linux'
become: yes
become: true

- name: install CPAN smoking stuff on RedHat
package:
Expand All @@ -66,7 +66,7 @@
- perl-version
when:
ansible_facts['os_family'] == 'RedHat'
become: yes
become: true

- name: install CPAN smoking stuff on Debian
package:
Expand All @@ -81,11 +81,11 @@
- libncurses-dev
- libperl-version-perl
- libproc-processtable-perl
- libtest-memory-cycle-perl
- libtest-memory-cycle-perl
- libssl-dev
when:
ansible_facts['os_family'] == 'Debian'
become: yes
become: true

- name: install CPAN smoking stuff on BSD - packages
package:
Expand All @@ -102,10 +102,10 @@
- p5-Sys-CpuLoad
- p5-Test-Reporter
- p5-Unix-Processors
- flock
- flock
when:
ansible_facts['os_family'] is regex('BSD$')
become: yes
become: true

# Ansible's cpanm module doesn't support adding more than one module
# - name: install CPAN smoking stuff on BSD - modules
Expand All @@ -117,12 +117,12 @@
# - Proc::Killfam
# when:
# ansible_facts['os_family'] is regex('BSD$')
# become: yes
# become: true
- name: install CPAN smoking stuff on BSD - modules
command: cpanm -iqn Proc::Govern Proc::Killfam
when:
ansible_facts['os_family'] is regex('BSD$')
become: yes
become: true

# This seems crazy, but is actually what I want
- name: Get latest version of smoker code
Expand Down Expand Up @@ -157,4 +157,4 @@
owner: bin
group: bin
mode: '0755'
become: yes
become: true

0 comments on commit 99e9cac

Please sign in to comment.