Commit 28b57dcb authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

change from state=installed to state=present for yum and apt module

parent d68eb55f
---
- name: install collectd - CentOS
yum: name=collectd state=installed enablerepo=epel
yum: name=collectd state=present enablerepo=epel
when:
- '"CentOS" in ansible_distribution'
become: true
become_user: root
- name: install collectd - RHEL7
yum: name=collectd state=installed enablerepo="Monash_University_EPEL7_EPEL_7_-_x86_64"
yum: name=collectd state=present enablerepo="Monash_University_EPEL7_EPEL_7_-_x86_64"
when:
- '"DGX" in ansible_product_name'
- '"RedHat" in ansible_distribution'
......
......@@ -15,6 +15,6 @@
# For some reason ed went missing from the NeCTAR official CentOS 7 image
# This meant that fail2ban could ban you, but could never unban you
- name: "make sure ed is installed"
yum: name=ed state=installed
yum: name=ed state=present
become: true
when: ansible_os_family == 'RedHat'
......@@ -52,7 +52,7 @@
when: ansible_distribution == 'Ubuntu'
- name: install development tools
yum: name="@Development Tools" state=installed
yum: name="@Development Tools" state=present
become: true
become_user: root
ignore_errors: yes
......
......@@ -45,7 +45,7 @@
## Install packages
- name: install deps
yum: name={{ item }} state=installed
yum: name={{ item }} state=present
become: true
with_items:
- gcc
......
---
- name: install system dependencies
yum: name={{ item }} state=installed
yum: name={{ item }} state=present
with_items:
- openssl-devel
- openldap-devel
......@@ -12,7 +12,7 @@
when: ansible_os_family == "RedHat"
- name: install system dependencies
apt: name={{ item }} state=installed
apt: name={{ item }} state=present
with_items:
- libssl-dev
- libldap2-dev
......
......@@ -21,7 +21,7 @@
- name: install karaage
apt: name={{ item }} state=installed
apt: name={{ item }} state=present
become: true
with_items:
- karaage-admin
......
......@@ -2,13 +2,13 @@
- include_vars: "{{ ansible_distribution }}_{{ ansible_distribution_version }}_{{ ansible_architecture }}.yml"
- name: install system packages apt
apt: name={{ item }} state=installed
apt: name={{ item }} state=present
become: true
with_items: system_packages
when: ansible_os_family == 'Debian'
- name: install system packages yum
yum: name={{ item }} state=installed
yum: name={{ item }} state=present
become: true
with_items: system_packages
when: ansible_os_family == 'RedHat'
......
......@@ -8,13 +8,13 @@
file: "{{ ansible_distribution }}.yml"
- name: install system packages apt
apt: name={{ item }} state=installed update_cache=true
apt: name={{ item }} state=present update_cache=true
become: true
with_items: "{{ system_packages }}"
when: ansible_os_family == 'Debian'
- name: install system packages yum
yum: name={{ item }} state=installed
yum: name={{ item }} state=present
become: true
with_items: "{{ system_packages }}"
when: ansible_os_family == 'RedHat'
......
---
- name: install environment-modules
yum: name=environment-modules state=installed
yum: name=environment-modules state=present
become: true
when: ansible_os_family == 'RedHat'
- name: install environment-modules
apt: name=environment-modules state=installed
apt: name=environment-modules state=present
become: true
when: ansible_os_family == 'Debian'
......
- name: "Installing ntp packages yum"
action: yum pkg={{ item }} state=installed
action: yum pkg={{ item }} state=present
with_items:
- ntp
- ntpdate
......@@ -8,7 +8,7 @@
when: ansible_os_family == 'RedHat'
- name: "Installing ntp packages apt"
action: apt pkg={{ item }} state=installed
action: apt pkg={{ item }} state=present
with_items:
- ntp
- ntpdate
......
- name: install deps
apt: name={{ item }} state=installed update_cache=yes
apt: name={{ item }} state=present update_cache=yes
become: true
with_items:
- gcc
......
- include_vars: roles/opensslca/vars/main.yml
- name: install system packages apt
apt: name=openssl state=installed update_cache=true
apt: name=openssl state=present update_cache=true
become: true
when: ansible_os_family == 'Debian'
- name: install system packages yum
yum: name=openssl state=installed
yum: name=openssl state=present
become: true
when: ansible_os_family == 'RedHat'
......
......@@ -4,12 +4,12 @@
become: true
- name: install python packages
yum: name=python-ldap state=installed
yum: name=python-ldap state=present
become: true
when: ansible_os_family == 'RedHat'
- name: install python packages
apt: name=python-ldap state=installed
apt: name=python-ldap state=present
become: true
when: ansible_os_family == 'Debian'
......
......@@ -5,12 +5,12 @@
run_once: true
- name: install python packages
yum: name=python-ldap state=installed
yum: name=python-ldap state=present
become: true
when: ansible_os_family == 'RedHat'
- name: install python packages
apt: name=python-ldap state=installed
apt: name=python-ldap state=present
become: true
when: ansible_os_family == 'Debian'
......
---
- name: install rsyslog
yum: name=rsyslog state=installed
yum: name=rsyslog state=present
become: true
become_user: root
when: ansible_os_family == 'RedHat'
- name: install rsyslog
apt: name=rsyslog state=installed
apt: name=rsyslog state=present
become: true
become_user: root
when: ansible_os_family == 'Debian'
......
---
- name: install rsyslog
yum: name=rsyslog state=installed
yum: name=rsyslog state=present
become: true
become_user: root
when: ansible_os_family == 'RedHat'
- name: install rsyslog
yum: name=rsyslog state=installed
yum: name=rsyslog state=present
become: true
become_user: root
when: ansible_os_family == 'Debian'
......
- name: yum install cgroup
yum: name={{ item }} state=installed
yum: name={{ item }} state=present
with_items:
- libcgroup
become: True
......
......@@ -10,7 +10,7 @@
when: ansible_os_family == "RedHat"
- name: install deps in control node
apt: name={{ item }} state=installed
apt: name={{ item }} state=present
become: true
with_items:
- mysql-client
......
......@@ -11,13 +11,13 @@
- name: install system packages apt
apt: name={{ item }} state=installed update_cache=true
apt: name={{ item }} state=present update_cache=true
become: true
with_items: system_packages
when: ansible_os_family == 'Debian'
- name: install system packages yum
yum: name={{ item }} state=installed
yum: name={{ item }} state=present
become: true
with_items: system_packages
when: ansible_os_family == 'RedHat'
......
---
- name: install aptitude
apt: name=aptitude state=installed
apt: name=aptitude state=present
become: true
become_user: root
when: ansible_os_family=="Debian"
......
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