Yum allowed state=installed. Lets use state=present consistently
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
bb1d3e8579
commit
039b08354a
26 changed files with 47 additions and 47 deletions
|
@ -1,11 +1,11 @@
|
||||||
- name: install faf web celery packages
|
- name: install faf web celery packages
|
||||||
package: pkg={{ item }} state=installed
|
package: pkg={{ item }} state=present
|
||||||
with_items: "{{ faf_web_celery_packages }}"
|
with_items: "{{ faf_web_celery_packages }}"
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: install redis package
|
- name: install redis package
|
||||||
yum : name={{ item }} state=installed
|
yum : name={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- redis
|
- redis
|
||||||
- python-redis
|
- python-redis
|
||||||
|
|
|
@ -8,37 +8,37 @@
|
||||||
when: faf_force_reinstall
|
when: faf_force_reinstall
|
||||||
|
|
||||||
- name: install core faf packages
|
- name: install core faf packages
|
||||||
package: pkg={{ item }} state=installed
|
package: pkg={{ item }} state=present
|
||||||
with_items: "{{ faf_packages }}"
|
with_items: "{{ faf_packages }}"
|
||||||
|
|
||||||
- name: install faf problem packages
|
- name: install faf problem packages
|
||||||
package: pkg={{ item }} state=installed
|
package: pkg={{ item }} state=present
|
||||||
with_items: "{{ faf_problem_packages }}"
|
with_items: "{{ faf_problem_packages }}"
|
||||||
|
|
||||||
- name: install faf opsys packages
|
- name: install faf opsys packages
|
||||||
package: pkg={{ item }} state=installed
|
package: pkg={{ item }} state=present
|
||||||
with_items: "{{ faf_opsys_packages }}"
|
with_items: "{{ faf_opsys_packages }}"
|
||||||
|
|
||||||
- name: install faf action packages
|
- name: install faf action packages
|
||||||
package: pkg={{ item }} state=installed
|
package: pkg={{ item }} state=present
|
||||||
with_items: "{{ faf_action_packages }}"
|
with_items: "{{ faf_action_packages }}"
|
||||||
|
|
||||||
- name: install faf bugtracker packages
|
- name: install faf bugtracker packages
|
||||||
package: pkg={{ item }} state=installed
|
package: pkg={{ item }} state=present
|
||||||
with_items: "{{ faf_bugtracker_packages }}"
|
with_items: "{{ faf_bugtracker_packages }}"
|
||||||
when: faf_with_bugtrackers
|
when: faf_with_bugtrackers
|
||||||
|
|
||||||
- name: install faf celery packages
|
- name: install faf celery packages
|
||||||
package: pkg={{ item }} state=installed
|
package: pkg={{ item }} state=present
|
||||||
with_items: "{{ faf_celery_packages }}"
|
with_items: "{{ faf_celery_packages }}"
|
||||||
when: faf_with_celery
|
when: faf_with_celery
|
||||||
|
|
||||||
- name: install faf fedmsg packages
|
- name: install faf fedmsg packages
|
||||||
package: pkg={{ item }} state=installed
|
package: pkg={{ item }} state=present
|
||||||
with_items: "{{ faf_fedmsg_packages }}"
|
with_items: "{{ faf_fedmsg_packages }}"
|
||||||
when: faf_with_fedmsg
|
when: faf_with_fedmsg
|
||||||
|
|
||||||
- name: install faf solutionfinder packages
|
- name: install faf solutionfinder packages
|
||||||
package: pkg={{ item }} state=installed
|
package: pkg={{ item }} state=present
|
||||||
with_items: "{{ faf_solutionfinder_packages }}"
|
with_items: "{{ faf_solutionfinder_packages }}"
|
||||||
when: faf_with_solutionfinders
|
when: faf_with_solutionfinders
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
when: faf_with_celery
|
when: faf_with_celery
|
||||||
|
|
||||||
- name: install faf web symboltransfer packages
|
- name: install faf web symboltransfer packages
|
||||||
package: pkg={{ item }} state=installed
|
package: pkg={{ item }} state=present
|
||||||
with_items: "{{ faf_web_symboltransfer_packages }}"
|
with_items: "{{ faf_web_symboltransfer_packages }}"
|
||||||
when: faf_with_symboltransfer
|
when: faf_with_symboltransfer
|
||||||
|
|
||||||
|
|
|
@ -4,4 +4,4 @@
|
||||||
when: rs_force_reinstall
|
when: rs_force_reinstall
|
||||||
|
|
||||||
- name: install retrace-server package
|
- name: install retrace-server package
|
||||||
yum : name=retrace-server state=installed
|
yum : name=retrace-server state=present
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
- name: Install required packages
|
- name: Install required packages
|
||||||
package: name="{{ item }}" state=installed
|
package: name="{{ item }}" state=present
|
||||||
with_items:
|
with_items:
|
||||||
- ansible
|
- ansible
|
||||||
- git
|
- git
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# tasks file for docker-distribution
|
# tasks file for docker-distribution
|
||||||
|
|
||||||
- name: install docker-distribution
|
- name: install docker-distribution
|
||||||
action: "{{ ansible_pkg_mgr }} name=docker-distribution state=installed"
|
action: "{{ ansible_pkg_mgr }} name=docker-distribution state=present"
|
||||||
tags:
|
tags:
|
||||||
- docker-distribution
|
- docker-distribution
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,7 @@
|
||||||
- reload httpd
|
- reload httpd
|
||||||
|
|
||||||
- name: Install haveged for entropy
|
- name: Install haveged for entropy
|
||||||
package: name=haveged state=installed
|
package: name=haveged state=present
|
||||||
tags:
|
tags:
|
||||||
- httpd
|
- httpd
|
||||||
- httpd/proxy
|
- httpd/proxy
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
- yumrepos
|
- yumrepos
|
||||||
|
|
||||||
- name: install needed packages
|
- name: install needed packages
|
||||||
package: pkg={{ item }} state=installed
|
package: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- fas
|
- fas
|
||||||
- fas-theme-fedoraproject
|
- fas-theme-fedoraproject
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Tasks to set up fas_server
|
# Tasks to set up fas_server
|
||||||
|
|
||||||
- name: install needed packages
|
- name: install needed packages
|
||||||
package: pkg={{ item }} state=installed
|
package: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- fas
|
- fas
|
||||||
- fas-plugin-yubikey
|
- fas-plugin-yubikey
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
- fas
|
- fas
|
||||||
|
|
||||||
- name: install needed packages
|
- name: install needed packages
|
||||||
package: pkg={{ item }} state=installed
|
package: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- krb5-workstation
|
- krb5-workstation
|
||||||
- python-requests-kerberos
|
- python-requests-kerberos
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Configuration for the notifications consumer
|
# Configuration for the notifications consumer
|
||||||
|
|
||||||
- name: install needed packages
|
- name: install needed packages
|
||||||
package: pkg={{ item }} state=installed
|
package: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- koji
|
- koji
|
||||||
- fedmsg
|
- fedmsg
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Tasks to set up fedmsg-gateway-slave
|
# Tasks to set up fedmsg-gateway-slave
|
||||||
|
|
||||||
- name: install needed packages
|
- name: install needed packages
|
||||||
package: pkg={{ item }} state=installed
|
package: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- fedmsg-gateway
|
- fedmsg-gateway
|
||||||
- stunnel
|
- stunnel
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Tasks to set up haproxy
|
# Tasks to set up haproxy
|
||||||
|
|
||||||
- name: install needed packages
|
- name: install needed packages
|
||||||
package: pkg={{ item }} state=installed
|
package: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- haproxy
|
- haproxy
|
||||||
tags:
|
tags:
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
- haproxy
|
- haproxy
|
||||||
|
|
||||||
- name: Install libsemanage-python so we can manage selinux with python...
|
- name: Install libsemanage-python so we can manage selinux with python...
|
||||||
package: name=libsemanage-python state=installed
|
package: name=libsemanage-python state=present
|
||||||
tags:
|
tags:
|
||||||
- haproxy
|
- haproxy
|
||||||
- selinux
|
- selinux
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- name: Install mod_ssl
|
- name: Install mod_ssl
|
||||||
package: name=mod_ssl state=installed
|
package: name=mod_ssl state=present
|
||||||
notify:
|
notify:
|
||||||
- reload proxyhttpd
|
- reload proxyhttpd
|
||||||
tags:
|
tags:
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
- httpd/certificate
|
- httpd/certificate
|
||||||
|
|
||||||
- name: Install haveged for entropy
|
- name: Install haveged for entropy
|
||||||
package: name=haveged state=installed
|
package: name=haveged state=present
|
||||||
tags:
|
tags:
|
||||||
- httpd
|
- httpd
|
||||||
- httpd/proxy
|
- httpd/proxy
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
- httpd/proxy
|
- httpd/proxy
|
||||||
|
|
||||||
- name: Install libsemanage-python so we can manage selinux with python...
|
- name: Install libsemanage-python so we can manage selinux with python...
|
||||||
package: name=libsemanage-python state=installed
|
package: name=libsemanage-python state=present
|
||||||
tags:
|
tags:
|
||||||
- httpd
|
- httpd
|
||||||
- httpd/proxy
|
- httpd/proxy
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
- yumrepos
|
- yumrepos
|
||||||
|
|
||||||
- name: install packages
|
- name: install packages
|
||||||
dnf: name={{ item }} state=installed
|
dnf: name={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- jenkins
|
- jenkins
|
||||||
- jenkins-openid-plugin
|
- jenkins-openid-plugin
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- name: install common slave packages (dnf)
|
- name: install common slave packages (dnf)
|
||||||
dnf: name={{ item }} state=installed
|
dnf: name={{ item }} state=present
|
||||||
with_items: "{{ slave_packages_common }}"
|
with_items: "{{ slave_packages_common }}"
|
||||||
when: ansible_distribution_major_version|int > 21
|
when: ansible_distribution_major_version|int > 21
|
||||||
tags:
|
tags:
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: install common slave packages (yum)
|
- name: install common slave packages (yum)
|
||||||
package: name={{ item }} state=installed
|
package: name={{ item }} state=present
|
||||||
with_items: "{{ slave_packages_common }}"
|
with_items: "{{ slave_packages_common }}"
|
||||||
when: ansible_distribution_major_version|int < 22
|
when: ansible_distribution_major_version|int < 22
|
||||||
tags:
|
tags:
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: install distro-specific slave packages (fedora, dnf)
|
- name: install distro-specific slave packages (fedora, dnf)
|
||||||
dnf: name={{ item }} state=installed
|
dnf: name={{ item }} state=present
|
||||||
with_items: "{{ slave_packages_fedora }}"
|
with_items: "{{ slave_packages_fedora }}"
|
||||||
when: ansible_distribution_major_version|int > 21
|
when: ansible_distribution_major_version|int > 21
|
||||||
tags:
|
tags:
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: install distro-specific slave packages (centos, yum)
|
- name: install distro-specific slave packages (centos, yum)
|
||||||
package: name={{ item }} state=installed
|
package: name={{ item }} state=present
|
||||||
with_items: "{{ slave_packages_centos }}"
|
with_items: "{{ slave_packages_centos }}"
|
||||||
when: ansible_distribution_major_version|int < 8
|
when: ansible_distribution_major_version|int < 8
|
||||||
tags:
|
tags:
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: install el7 specific slave packages
|
- name: install el7 specific slave packages
|
||||||
package: name={{ item }} state=installed
|
package: name={{ item }} state=present
|
||||||
with_items: "{{ el7_only }}"
|
with_items: "{{ el7_only }}"
|
||||||
when: ansible_distribution_major_version|int == 7
|
when: ansible_distribution_major_version|int == 7
|
||||||
tags:
|
tags:
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: install f25 specific slave packages
|
- name: install f25 specific slave packages
|
||||||
dnf: name={{ item }} state=installed
|
dnf: name={{ item }} state=present
|
||||||
with_items: "{{ f25_only }}"
|
with_items: "{{ f25_only }}"
|
||||||
when: ansible_distribution_major_version|int == 25
|
when: ansible_distribution_major_version|int == 25
|
||||||
tags:
|
tags:
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: install f24 specific slave packages
|
- name: install f24 specific slave packages
|
||||||
dnf: name={{ item }} state=installed
|
dnf: name={{ item }} state=present
|
||||||
with_items: "{{ f24_only }}"
|
with_items: "{{ f24_only }}"
|
||||||
when: ansible_distribution_major_version|int == 24
|
when: ansible_distribution_major_version|int == 24
|
||||||
tags:
|
tags:
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
# Haveged is not needed per se, but very useful for builds that require lots of entropy
|
# Haveged is not needed per se, but very useful for builds that require lots of entropy
|
||||||
# Hello, Ipsilon
|
# Hello, Ipsilon
|
||||||
- name: install haveged
|
- name: install haveged
|
||||||
dnf: name=haveged state=installed
|
dnf: name=haveged state=present
|
||||||
when: is_fedora is defined and ansible_distribution_major_version|int > 21
|
when: is_fedora is defined and ansible_distribution_major_version|int > 21
|
||||||
tags:
|
tags:
|
||||||
- jenkins
|
- jenkins
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- name: install packages
|
- name: install packages
|
||||||
package: name={{ item }} state=installed
|
package: name={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- koschei-admin
|
- koschei-admin
|
||||||
- koschei-backend
|
- koschei-backend
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- name: install packages
|
- name: install packages
|
||||||
package: name={{ item }} state=installed
|
package: name={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- koschei-frontend
|
- koschei-frontend
|
||||||
- koschei-frontend-fedora
|
- koschei-frontend-fedora
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# tasks file for loopabull
|
# tasks file for loopabull
|
||||||
|
|
||||||
- name: Install required packages
|
- name: Install required packages
|
||||||
package: name="{{ item }}" state=installed
|
package: name="{{ item }}" state=present
|
||||||
with_items:
|
with_items:
|
||||||
- git
|
- git
|
||||||
- loopabull
|
- loopabull
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# tasks file for osbs-client
|
# tasks file for osbs-client
|
||||||
|
|
||||||
- name: install osbs-client package
|
- name: install osbs-client package
|
||||||
action: "{{ ansible_pkg_mgr }} name=osbs-client state=installed"
|
action: "{{ ansible_pkg_mgr }} name=osbs-client state=present"
|
||||||
|
|
||||||
- name: apply osbs-client templated config
|
- name: apply osbs-client templated config
|
||||||
template: src=osbs.conf.j2 dest={{ osbs_client_conf_path }} mode=0640
|
template: src=osbs.conf.j2 dest={{ osbs_client_conf_path }} mode=0640
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
when: hostname is defined
|
when: hostname is defined
|
||||||
|
|
||||||
- name: install basic packages
|
- name: install basic packages
|
||||||
action: "{{ ansible_pkg_mgr }} name={{ item }} state=installed"
|
action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
|
||||||
with_items:
|
with_items:
|
||||||
- vim
|
- vim
|
||||||
- tmux
|
- tmux
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
- tree
|
- tree
|
||||||
|
|
||||||
- name: install yum-utils when using yum
|
- name: install yum-utils when using yum
|
||||||
package: name=yum-utils state=installed
|
package: name=yum-utils state=present
|
||||||
when: ansible_pkg_mgr == "yum"
|
when: ansible_pkg_mgr == "yum"
|
||||||
|
|
||||||
- name: enable rhel7 repos
|
- name: enable rhel7 repos
|
||||||
|
@ -25,11 +25,11 @@
|
||||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version == '7'
|
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version == '7'
|
||||||
|
|
||||||
- name: enable epel7
|
- name: enable epel7
|
||||||
package: name={{ epel7_url }} state=installed
|
package: name={{ epel7_url }} state=present
|
||||||
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version == '7'
|
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version == '7'
|
||||||
|
|
||||||
- name: install firewalld
|
- name: install firewalld
|
||||||
action: "{{ ansible_pkg_mgr }} name=firewalld state=installed"
|
action: "{{ ansible_pkg_mgr }} name=firewalld state=present"
|
||||||
when: osbs_manage_firewalld
|
when: osbs_manage_firewalld
|
||||||
|
|
||||||
- name: enable firewalld
|
- name: enable firewalld
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
- people
|
- people
|
||||||
|
|
||||||
- name: Install haveged for entropy
|
- name: Install haveged for entropy
|
||||||
package: name=haveged state=installed
|
package: name=haveged state=present
|
||||||
tags:
|
tags:
|
||||||
- httpd
|
- httpd
|
||||||
- httpd/proxy
|
- httpd/proxy
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# tasks file for push-docker
|
# tasks file for push-docker
|
||||||
#
|
#
|
||||||
- name: install docker
|
- name: install docker
|
||||||
action: "{{ ansible_pkg_mgr }} name=docker state=installed"
|
action: "{{ ansible_pkg_mgr }} name=docker state=present"
|
||||||
|
|
||||||
- name: ensure docker daemon cert dir exists
|
- name: ensure docker daemon cert dir exists
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
template: src=s3cfg dest=/home/s3-mirror/.s3cfg owner=s3-mirror group=s3-mirror mode=0600
|
template: src=s3cfg dest=/home/s3-mirror/.s3cfg owner=s3-mirror group=s3-mirror mode=0600
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
package: pkg={{ item }} state=installed
|
package: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- s3cmd
|
- s3cmd
|
||||||
- mirrormanager2-client
|
- mirrormanager2-client
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Tasks to set up varnish
|
# Tasks to set up varnish
|
||||||
|
|
||||||
- name: install needed packages
|
- name: install needed packages
|
||||||
package: pkg={{ item }} state=installed
|
package: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- libsemanage-python
|
- libsemanage-python
|
||||||
- varnish
|
- varnish
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Tasks to set up yubikey_verifier
|
# Tasks to set up yubikey_verifier
|
||||||
|
|
||||||
- name: install needed packages
|
- name: install needed packages
|
||||||
package: pkg={{ item }} state=installed
|
package: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- yubikey-ksm
|
- yubikey-ksm
|
||||||
- yubikey-val
|
- yubikey-val
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue