Commit 9c42dc0c authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files

move enable powertools before moreutils (is required for)

parent ad80f9ce
Pipeline #38206 passed with stage
in 1 minute and 57 seconds
......@@ -44,6 +44,19 @@
when: "cron_email | bool or epel_repo | bool"
become: true
# from https://github.com/robertdebock/ansible-role-powertools/blob/master/tasks/main.yml
- name: enable powertools
ini_file:
path: /etc/yum.repos.d/CentOS-PowerTools.repo
section: PowerTools
option: enabled
value: "1"
mode: "0644"
notify:
- yum update cache
when: "powertools | default(false) == true | bool"
become: true
- name: "install moreutils (chronic)"
yum:
name: "moreutils"
......@@ -91,19 +104,6 @@
become: true
when: "hostname is defined and nrec_instance | bool"
# from https://github.com/robertdebock/ansible-role-powertools/blob/master/tasks/main.yml
- name: enable powertools
ini_file:
path: /etc/yum.repos.d/CentOS-PowerTools.repo
section: PowerTools
option: enabled
value: "1"
mode: "0644"
notify:
- yum update cache
when: "powertools | default(false) == true | bool"
become: true
- name: "install extra packages {{ centos7_extra_packages | default ([]) }} if defined"
yum:
name: "{{ centos7_extra_packages }}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment