forked from ISTI-ansible-roles/ansible-roles
Refactor: change 'state=installed' with 'state=present' everywhere.
This commit is contained in:
parent
07ebea657c
commit
7a67ba48d2
dnet_user_services_perms/tasks
drupal-org/tasks
fail2ban/tasks
ganglia/tasks
jetty-apache/tasks
jetty/tasks
mongodb/tasks
nagios-nrpe-tomcat/tasks
nagios/tasks
postfix-relay/tasks
redmine/tasks
tomcat-apache-requirements/tasks
tomcat/tasks
vsftpd/tasks
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Install additional packages, if needed
|
- name: Install additional packages, if needed
|
||||||
apt: pkg={{ item }} state=installed
|
apt: pkg={{ item }} state=present
|
||||||
with_items: '{{ dnet_additional_packages | default ([]) }}'
|
with_items: '{{ dnet_additional_packages | default ([]) }}'
|
||||||
tags: ['dnet', 'pkgs']
|
tags: ['dnet', 'pkgs']
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
tags: drupal
|
tags: drupal
|
||||||
|
|
||||||
- name: Install the drupal deb package
|
- name: Install the drupal deb package
|
||||||
apt: name=drupal state=installed
|
apt: name=drupal state=present
|
||||||
when: drupal_install_deb
|
when: drupal_install_deb
|
||||||
tags: [ 'drupal', 'drupal_deb' ]
|
tags: [ 'drupal', 'drupal_deb' ]
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Install fail2ban on ubuntu >= 14.04 and debian >= 8
|
- name: Install fail2ban on ubuntu >= 14.04 and debian >= 8
|
||||||
apt: pkg={{ item }} state=installed
|
apt: pkg={{ item }} state=present
|
||||||
with_items: '{{ f2b_packages }}'
|
with_items: '{{ f2b_packages }}'
|
||||||
tags: fail2ban
|
tags: fail2ban
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
---
|
---
|
||||||
- block:
|
- block:
|
||||||
- name: Install the ganglia client
|
- name: Install the ganglia client
|
||||||
apt: pkg={{ item }} state=installed update_cache=yes cache_valid_time=3600
|
apt: pkg={{ item }} state=present update_cache=yes cache_valid_time=3600
|
||||||
with_items:
|
with_items:
|
||||||
- ganglia-monitor
|
- ganglia-monitor
|
||||||
|
|
||||||
- name: Install the ganglia linux specific plugins. We need at least ubuntu trusty. Or debian 7. Or debian 8
|
- name: Install the ganglia linux specific plugins. We need at least ubuntu trusty. Or debian 7. Or debian 8
|
||||||
apt: pkg={{ item }} state=installed force=yes
|
apt: pkg={{ item }} state=present force=yes
|
||||||
with_items:
|
with_items:
|
||||||
- ganglia-modules-linux
|
- ganglia-modules-linux
|
||||||
- ganglia-monitor-python
|
- ganglia-monitor-python
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
when: is_trusty
|
when: is_trusty
|
||||||
|
|
||||||
- name: Install the ganglia linux specific plugins. We need at least ubuntu trusty. Or debian 7. Or debian 8
|
- name: Install the ganglia linux specific plugins. We need at least ubuntu trusty. Or debian 7. Or debian 8
|
||||||
apt: pkg={{ item }} state=installed force=yes
|
apt: pkg={{ item }} state=present force=yes
|
||||||
with_items:
|
with_items:
|
||||||
- ganglia-modules-linux
|
- ganglia-modules-linux
|
||||||
- ganglia-monitor-python
|
- ganglia-monitor-python
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
when: is_debian7
|
when: is_debian7
|
||||||
|
|
||||||
- name: Install the ganglia linux specific plugins. We need at least ubuntu trusty. Or debian 7. Or debian 8
|
- name: Install the ganglia linux specific plugins. We need at least ubuntu trusty. Or debian 7. Or debian 8
|
||||||
apt: pkg={{ item }} state=installed force=yes
|
apt: pkg={{ item }} state=present force=yes
|
||||||
with_items:
|
with_items:
|
||||||
- ganglia-modules-linux
|
- ganglia-modules-linux
|
||||||
- ganglia-monitor-python
|
- ganglia-monitor-python
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Install the apache packages
|
- name: Install the apache packages
|
||||||
apt: pkg={{ item }} state=installed force=yes
|
apt: pkg={{ item }} state=present force=yes
|
||||||
with_items:
|
with_items:
|
||||||
- apache2
|
- apache2
|
||||||
- apache2-mpm-prefork
|
- apache2-mpm-prefork
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Install the jetty packages
|
- name: Install the jetty packages
|
||||||
apt: pkg={{ item }} state=installed force=yes
|
apt: pkg={{ item }} state=present force=yes
|
||||||
with_items:
|
with_items:
|
||||||
- jetty
|
- jetty
|
||||||
- libapache2-mod-jk
|
- libapache2-mod-jk
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Install the jetty packages
|
- name: Install the jetty packages
|
||||||
apt: pkg={{ item }} state=installed force=yes
|
apt: pkg={{ item }} state=present force=yes
|
||||||
with_items:
|
with_items:
|
||||||
- jetty
|
- jetty
|
||||||
tags:
|
tags:
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
- jetty
|
- jetty
|
||||||
|
|
||||||
- name: Install the apache mod_jk module, if needed
|
- name: Install the apache mod_jk module, if needed
|
||||||
apt: pkg={{ item }} state=installed force=yes
|
apt: pkg={{ item }} state=present force=yes
|
||||||
with_items:
|
with_items:
|
||||||
- libapache2-mod-jk
|
- libapache2-mod-jk
|
||||||
when: jetty_use_apache is defined and jetty_use_apache
|
when: jetty_use_apache is defined and jetty_use_apache
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
tags: mongodb
|
tags: mongodb
|
||||||
|
|
||||||
- name: Install the mongodb server
|
- name: Install the mongodb server
|
||||||
apt: pkg={{ item }} state=installed
|
apt: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- mongodb-server
|
- mongodb-server
|
||||||
when:
|
when:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Install the plugin dependencies
|
- name: Install the plugin dependencies
|
||||||
apt: pkg={{ item }} state=installed
|
apt: pkg={{ item }} state=present
|
||||||
with_items: check_tomcat_deps
|
with_items: check_tomcat_deps
|
||||||
tags:
|
tags:
|
||||||
- nagios
|
- nagios
|
||||||
|
|
|
@ -33,12 +33,12 @@
|
||||||
tags: [ 'dell', 'nagios' ]
|
tags: [ 'dell', 'nagios' ]
|
||||||
|
|
||||||
- name: Install the Dell OMSA packages dependencies
|
- name: Install the Dell OMSA packages dependencies
|
||||||
apt: pkg={{ item }} state=installed force=yes update_cache=yes cache_valid_time=1800
|
apt: pkg={{ item }} state=present force=yes update_cache=yes cache_valid_time=1800
|
||||||
with_items: '{{ nagios_dell_omsa_deps }}'
|
with_items: '{{ nagios_dell_omsa_deps }}'
|
||||||
tags: [ 'dell', 'nagios' ]
|
tags: [ 'dell', 'nagios' ]
|
||||||
|
|
||||||
- name: Install other Dell OMSA packages dependencies
|
- name: Install other Dell OMSA packages dependencies
|
||||||
apt: pkg={{ item }} state=installed update_cache=yes cache_valid_time=1800
|
apt: pkg={{ item }} state=present update_cache=yes cache_valid_time=1800
|
||||||
with_items:
|
with_items:
|
||||||
- python-requests
|
- python-requests
|
||||||
register: requests_pkg
|
register: requests_pkg
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
tags: [ 'dell', 'nagios' ]
|
tags: [ 'dell', 'nagios' ]
|
||||||
|
|
||||||
- name: Install the python-pip package if requests is not available as a package
|
- name: Install the python-pip package if requests is not available as a package
|
||||||
apt: pkg={{ item }} state=installed update_cache=yes cache_valid_time=1800
|
apt: pkg={{ item }} state=present update_cache=yes cache_valid_time=1800
|
||||||
with_items:
|
with_items:
|
||||||
- python-pip
|
- python-pip
|
||||||
when: requests_pkg|failed
|
when: requests_pkg|failed
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
- nagios
|
- nagios
|
||||||
|
|
||||||
- name: Install some packages needed by the hardware checks
|
- name: Install some packages needed by the hardware checks
|
||||||
apt: pkg={{ item }} state=installed
|
apt: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- smartmontools
|
- smartmontools
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
---
|
---
|
||||||
- name: Install the nagios packages
|
- name: Install the nagios packages
|
||||||
apt: pkg={{ item }} state=installed update_cache=yes cache_valid_time=1800
|
apt: pkg={{ item }} state=present update_cache=yes cache_valid_time=1800
|
||||||
with_items: '{{ nagios_plugins_base_pkgs }}'
|
with_items: '{{ nagios_plugins_base_pkgs }}'
|
||||||
tags: nagios
|
tags: nagios
|
||||||
|
|
||||||
- name: Additional nagios plugins when available
|
- name: Additional nagios plugins when available
|
||||||
apt: pkg={{ item }} state=installed update_cache=yes cache_valid_time=1800
|
apt: pkg={{ item }} state=present update_cache=yes cache_valid_time=1800
|
||||||
with_items: '{{ nagios_plugins_contrib }}'
|
with_items: '{{ nagios_plugins_contrib }}'
|
||||||
tags: [ 'nagios', 'nagios_plug_contrib' ]
|
tags: [ 'nagios', 'nagios_plug_contrib' ]
|
||||||
|
|
||||||
|
|
|
@ -4,14 +4,14 @@
|
||||||
tags:
|
tags:
|
||||||
- nsca
|
- nsca
|
||||||
|
|
||||||
- apt: pkg={{ item }} state=installed
|
- apt: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- nsca-client
|
- nsca-client
|
||||||
when: '(({{ is_not_ubuntu_less_than_precise }}) == True) or (({{ is_debian7 }}) == True)'
|
when: '(({{ is_not_ubuntu_less_than_precise }}) == True) or (({{ is_debian7 }}) == True)'
|
||||||
tags:
|
tags:
|
||||||
- nsca
|
- nsca
|
||||||
|
|
||||||
- apt: pkg={{ item }} state=installed
|
- apt: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- nsca
|
- nsca
|
||||||
when: "(({{ is_not_debian_less_than_6 }}) == True) and (({{ is_ubuntu_less_than_precise }}) == True)"
|
when: "(({{ is_not_debian_less_than_6 }}) == True) and (({{ is_ubuntu_less_than_precise }}) == True)"
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
- nagios
|
- nagios
|
||||||
|
|
||||||
- name: Install the packages needed to check postgres via nagios
|
- name: Install the packages needed to check postgres via nagios
|
||||||
apt: pkg={{ item }} state=installed
|
apt: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- check-postgres
|
- check-postgres
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
tags: postfix-relay
|
tags: postfix-relay
|
||||||
|
|
||||||
- name: Install the sasl2 authentication infrastructure
|
- name: Install the sasl2 authentication infrastructure
|
||||||
apt: pkg={{ item }} state=installed
|
apt: pkg={{ item }} state=present
|
||||||
with_items: '{{ postfix_sasl_packages }}'
|
with_items: '{{ postfix_sasl_packages }}'
|
||||||
tags: postfix-relay
|
tags: postfix-relay
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: install the packages needed to run the redmine infrastructure. install the ruby packages needed to run redmine. Set ruby 1.9.3 as default
|
- name: install the packages needed to run the redmine infrastructure. install the ruby packages needed to run redmine. Set ruby 1.9.3 as default
|
||||||
apt: pkg={{ item }} state=installed
|
apt: pkg={{ item }} state=present
|
||||||
with_items: redmine_base_packages_old_gems
|
with_items: redmine_base_packages_old_gems
|
||||||
notify:
|
notify:
|
||||||
- set ruby 1.9.3 as default
|
- set ruby 1.9.3 as default
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Install the packages needed to run the redmine infrastructure. install the ruby packages needed to run redmine. Use ruby 2.0
|
- name: Install the packages needed to run the redmine infrastructure. install the ruby packages needed to run redmine. Use ruby 2.0
|
||||||
apt: pkg={{ item }} state=installed
|
apt: pkg={{ item }} state=present
|
||||||
with_items: redmine_base_packages
|
with_items: redmine_base_packages
|
||||||
tags:
|
tags:
|
||||||
- ruby
|
- ruby
|
||||||
|
|
|
@ -91,7 +91,7 @@
|
||||||
tags: redmine
|
tags: redmine
|
||||||
|
|
||||||
- name: Install the packages needed by plugins or to build plugins required gems
|
- name: Install the packages needed by plugins or to build plugins required gems
|
||||||
apt: pkg={{ item }} state=installed
|
apt: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- libxslt1-dev
|
- libxslt1-dev
|
||||||
tags: redmine
|
tags: redmine
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
---
|
---
|
||||||
- name: Install the postgresql command line client
|
- name: Install the postgresql command line client
|
||||||
apt: pkg={{ item }} state=installed
|
apt: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- postgresql-client
|
- postgresql-client
|
||||||
when: tomcat_install_jdbc is defined and tomcat_install_jdbc
|
when: tomcat_install_jdbc is defined and tomcat_install_jdbc
|
||||||
tags: [ 'postgres', 'postgresql', 'tomcat' ]
|
tags: [ 'postgres', 'postgresql', 'tomcat' ]
|
||||||
|
|
||||||
- name: Install the mongodb client
|
- name: Install the mongodb client
|
||||||
apt: pkg={{ item }} state=installed
|
apt: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- mongodb-clients
|
- mongodb-clients
|
||||||
when:
|
when:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
# Postgresql JDBC
|
# Postgresql JDBC
|
||||||
- name: Install the jdbc package if needed
|
- name: Install the jdbc package if needed
|
||||||
apt: pkg={{ item }} state=installed
|
apt: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- libpostgresql-jdbc-java
|
- libpostgresql-jdbc-java
|
||||||
when: tomcat_install_pg_jdbc
|
when: tomcat_install_pg_jdbc
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Install the vsftpd package
|
- name: Install the vsftpd package
|
||||||
apt: pkg=vsftpd state=installed update_cache=yes cache_valid_time=3600
|
apt: pkg=vsftpd state=present update_cache=yes cache_valid_time=3600
|
||||||
tags: [ 'vsftpd', 'ftp' ]
|
tags: [ 'vsftpd', 'ftp' ]
|
||||||
|
|
||||||
- name: Install the vsftpd configuration file
|
- name: Install the vsftpd configuration file
|
||||||
|
|
Loading…
Reference in New Issue