change state=running to start=started as the old one is going away in ansible 2.7

This commit is contained in:
Kevin Fenzi 2017-04-13 01:37:21 +00:00
parent feead615f2
commit 8a6e51a9a6
40 changed files with 52 additions and 52 deletions

View file

@ -35,7 +35,7 @@
when: not inventory_hostname.startswith('bkernel') when: not inventory_hostname.startswith('bkernel')
- name: make sure kojid is running - name: make sure kojid is running
service: name=kojid state=running enabled=yes service: name=kojid state=started enabled=yes
handlers: handlers:
- include: "{{ handlers }}/restart_services.yml" - include: "{{ handlers }}/restart_services.yml"

View file

@ -49,10 +49,10 @@
when: not inventory_hostname.startswith('bkernel') when: not inventory_hostname.startswith('bkernel')
- name: make sure httpd is running - name: make sure httpd is running
service: name=httpd state=running enabled=yes service: name=httpd state=started enabled=yes
- name: make sure kojid is running - name: make sure kojid is running
service: name=kojid state=running enabled=yes service: name=kojid state=started enabled=yes
handlers: handlers:
- include: "{{ handlers }}/restart_services.yml" - include: "{{ handlers }}/restart_services.yml"

View file

@ -99,10 +99,10 @@
# # XXX - should these just be included in koji_builder and koji_hub roles? # # XXX - should these just be included in koji_builder and koji_hub roles?
# tasks: # tasks:
# - name: make sure kojid is running # - name: make sure kojid is running
# service: name=kojid state=running # service: name=kojid state=started
# tags: # tags:
# - kojid # - kojid
# - name: make sure kojira is running # - name: make sure kojira is running
# service: name=kojira state=running # service: name=kojira state=started
# tags: # tags:
# - kojira # - kojira

View file

@ -75,7 +75,7 @@
- command: systemctl daemon-reload - command: systemctl daemon-reload
- service: name={{item}} enabled=yes state=running - service: name={{item}} enabled=yes state=started
with_items: with_items:
- redis - redis
- hubs-webapp - hubs-webapp
@ -97,7 +97,7 @@
# Set up the db for datanommer # Set up the db for datanommer
- command: postgresql-setup initdb creates=/var/lib/pgsql/data/pg_hba.conf - command: postgresql-setup initdb creates=/var/lib/pgsql/data/pg_hba.conf
- service: name=postgresql enabled=yes state=running - service: name=postgresql enabled=yes state=started
# TODO -- createdb -E utf-8 datanommer # TODO -- createdb -E utf-8 datanommer
# TODO -- `datanommer-create-db` # TODO -- `datanommer-create-db`
- service: name=fedmsg-hub enabled=yes state=running - service: name=fedmsg-hub enabled=yes state=started

View file

@ -10,7 +10,7 @@
tasks: tasks:
- name: Start apache - name: Start apache
service: name="httpd" state=running service: name="httpd" state=started
post_tasks: post_tasks:
- name: tell nagios to unshush w.r.t. apache - name: tell nagios to unshush w.r.t. apache

View file

@ -217,7 +217,7 @@
- base - base
- name: dist enabled services - name: dist enabled services
service: state=running enabled=true name={{ item }} service: state=started enabled=true name={{ item }}
with_items: with_items:
- "{{ service_enabled }}" - "{{ service_enabled }}"
tags: tags:

View file

@ -31,7 +31,7 @@
- base - base
- name: enable postfix to start - name: enable postfix to start
service: name=postfix state=running enabled=true service: name=postfix state=started enabled=true
tags: tags:
- service - service
- base - base

View file

@ -187,6 +187,6 @@
# enable collectd # enable collectd
- name: enable collectd svc - name: enable collectd svc
service: state=running enabled=true name=collectd service: state=started enabled=true name=collectd
tags: tags:
- collectd - collectd

View file

@ -104,7 +104,7 @@
- restart lighttpd - restart lighttpd
- name: start webserver - name: start webserver
service: state=running enabled=yes name=lighttpd service: state=started enabled=yes name=lighttpd
# setup dirs for the ansible execution off of provisioning # setup dirs for the ansible execution off of provisioning
#- name: dirs from provision #- name: dirs from provision
@ -174,7 +174,7 @@
include: install_cloud_cert.yml include: install_cloud_cert.yml
- name: enable and run copr-backend services - name: enable and run copr-backend services
service: name="{{ item }}" enabled=yes state=running service: name="{{ item }}" enabled=yes state=started
with_items: with_items:
- redis # TODO: .service in copr-backend should depend on redis - redis # TODO: .service in copr-backend should depend on redis
- copr-backend - copr-backend

View file

@ -99,7 +99,7 @@
- config - config
- name: enable services - name: enable services
service: state=running enabled=yes name={{ item }} service: state=started enabled=yes name={{ item }}
with_items: with_items:
- httpd - httpd
- logstash - logstash

View file

@ -43,7 +43,7 @@
- config - config
- name: enable Pg service - name: enable Pg service
service: state=running enabled=yes name=postgresql service: state=started enabled=yes name=postgresql
- name: Create db - name: Create db
postgresql_db: name="coprdb" encoding='UTF-8' postgresql_db: name="coprdb" encoding='UTF-8'

View file

@ -17,7 +17,7 @@
- dhcp_server - dhcp_server
- name: enable dhcpd service - name: enable dhcpd service
service: state=running enabled=true name=dhcpd service: state=started enabled=true name=dhcpd
tags: tags:
- service - service
- config - config

View file

@ -51,7 +51,7 @@
- restart fedmsg2statsd - restart fedmsg2statsd
- name: Set fedmsg2statsd to run on boot - name: Set fedmsg2statsd to run on boot
service: name=fedmsg2statsd enabled=yes state=running service: name=fedmsg2statsd enabled=yes state=started
tags: tags:
- service - service
- fedmsg2statsd - fedmsg2statsd

View file

@ -30,7 +30,7 @@
persistent=true persistent=true
- name: Set grafana-server to run on boot - name: Set grafana-server to run on boot
service: name=grafana-server enabled=yes state=running service: name=grafana-server enabled=yes state=started
tags: tags:
- service - service
- grafana - grafana

View file

@ -26,14 +26,14 @@
- graphite - graphite
- name: Set carbon-aggregator to run on boot - name: Set carbon-aggregator to run on boot
service: name=carbon-aggregator enabled=yes state=running service: name=carbon-aggregator enabled=yes state=started
tags: tags:
- service - service
- graphite - graphite
- carbon - carbon
- name: Set carbon-cache to run on boot - name: Set carbon-cache to run on boot
service: name=carbon-cache enabled=yes state=running service: name=carbon-cache enabled=yes state=started
tags: tags:
- service - service
- graphite - graphite

View file

@ -8,7 +8,7 @@
- statsd - statsd
- name: Set statsd to run on boot - name: Set statsd to run on boot
service: name=statsd enabled=yes state=running service: name=statsd enabled=yes state=started
tags: tags:
- service - service
- statsd - statsd

View file

@ -121,7 +121,7 @@
- config - config
- name: enable infinoted - name: enable infinoted
service: name=infinoted state=running enabled=true service: name=infinoted state=started enabled=true
tags: tags:
- infinote - infinote
- config - config

View file

@ -22,12 +22,12 @@
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
- name: enable iscsi service - name: enable iscsi service
service: state=running enabled=yes name=iscsi service: state=started enabled=yes name=iscsi
tags: tags:
- services - services
- name: enable multipathd service - name: enable multipathd service
service: state=running enabled=yes name=multipathd service: state=started enabled=yes name=multipathd
tags: tags:
- services - services

View file

@ -112,7 +112,7 @@
- config - config
- name: enable jenkins service to start on boot - name: enable jenkins service to start on boot
service: name=jenkins state=running enabled=true service: name=jenkins state=started enabled=true
tags: tags:
- jenkins - jenkins
- jenkins/master - jenkins/master

View file

@ -88,7 +88,7 @@
- packages - packages
- name: enable haveged service to start on boot - name: enable haveged service to start on boot
service: name=haveged state=running enabled=true service: name=haveged state=started enabled=true
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

View file

@ -31,7 +31,7 @@
- keepalived - keepalived
- name: Make sure keepalived is set to start and is running - name: Make sure keepalived is set to start and is running
service: state=running enabled=true name=keepalived service: state=started enabled=true name=keepalived
tags: tags:
- service - service
- keepalived - keepalived

View file

@ -71,7 +71,7 @@
- config - config
- name: enable services to start on boot - name: enable services to start on boot
service: name={{ item }} state=running enabled=true service: name={{ item }} state=started enabled=true
with_items: "{{ koschei_backend_services }}" with_items: "{{ koschei_backend_services }}"
tags: tags:
- koschei - koschei

View file

@ -46,7 +46,7 @@
- selinux - selinux
- name: enable httpd to start on boot - name: enable httpd to start on boot
service: name=httpd state=running enabled=true service: name=httpd state=started enabled=true
tags: tags:
- koschei - koschei
- service - service

View file

@ -14,7 +14,7 @@
- memcached - memcached
- name: enable memcached service - name: enable memcached service
service: state=running enabled=true name=memcached service: state=started enabled=true name=memcached
tags: tags:
- service - service
- config - config

View file

@ -206,7 +206,7 @@
- nagios/client - nagios/client
- name: nrpe service start - name: nrpe service start
service: name=nrpe state=running enabled=true service: name=nrpe state=started enabled=true
tags: tags:
- service - service
- nagios/client - nagios/client

View file

@ -207,7 +207,7 @@
- nagios_client - nagios_client
- name: nrpe service start - name: nrpe service start
service: name=nrpe state=running enabled=true service: name=nrpe state=started enabled=true
tags: tags:
- service - service
- nagios_client - nagios_client

View file

@ -83,7 +83,7 @@
- notifs/backend - notifs/backend
- name: start the workers and the backend - name: start the workers and the backend
service: name={{item}} enabled=yes state=running service: name={{item}} enabled=yes state=started
with_items: with_items:
- fmn-backend@1 - fmn-backend@1
- fmn-worker@1 - fmn-worker@1

View file

@ -20,7 +20,7 @@
- base - base
- name: Start ntpd - name: Start ntpd
service: name=ntpd state=running enabled=true service: name=ntpd state=started enabled=true
tags: tags:
- ntp - ntp
- service - service

View file

@ -47,7 +47,7 @@
- base - base
- name: Start and enable opendkim - name: Start and enable opendkim
service: name=opendkim state=running enabled=true service: name=opendkim state=started enabled=true
tags: tags:
- opendkim - opendkim
- service - service

View file

@ -42,21 +42,21 @@
# - restart openvpn (RHEL6) # - restart openvpn (RHEL6)
- name: enable openvpn service for rhel 6 - name: enable openvpn service for rhel 6
service: name=openvpn state=running enabled=true service: name=openvpn state=started enabled=true
when: ansible_distribution_major_version|int == 6 when: ansible_distribution_major_version|int == 6
tags: tags:
- service - service
- openvpn - openvpn
- name: Make sure openvpn is running in rhel 7.1 - name: Make sure openvpn is running in rhel 7.1
service: name=openvpn@openvpn state=running enabled=true service: name=openvpn@openvpn state=started enabled=true
when: ansible_distribution_major_version|int == 7 when: ansible_distribution_major_version|int == 7
tags: tags:
- service - service
- openvpn - openvpn
- name: enable openvpn service for Fedora - name: enable openvpn service for Fedora
service: name=openvpn@openvpn state=running enabled=true service: name=openvpn@openvpn state=started enabled=true
when: is_fedora is defined when: is_fedora is defined
tags: tags:
- service - service

View file

@ -49,7 +49,7 @@
- openvpn - openvpn
- name: enable openvpn service for rhel 7 or Fedora - name: enable openvpn service for rhel 7 or Fedora
service: name=openvpn@openvpn state=running enabled=true service: name=openvpn@openvpn state=started enabled=true
when: ( ansible_distribution_version[0] == 7 or is_fedora is defined ) and openvpn_master is defined when: ( ansible_distribution_version[0] == 7 or is_fedora is defined ) and openvpn_master is defined
tags: tags:
- service - service

View file

@ -39,6 +39,6 @@
- config - config
- name: set the service running/enabled - name: set the service running/enabled
service: name=spamassassin enabled=true state=running service: name=spamassassin enabled=true state=started
tags: tags:
- service - service

View file

@ -39,7 +39,7 @@
### Real quick, let's setup postfix for mail on the side. ### Real quick, let's setup postfix for mail on the side.
### if we ever move this internally, we'll just use bastion. ### if we ever move this internally, we'll just use bastion.
- name: Set postfix to run on boot - name: Set postfix to run on boot
service: name=postfix state=running enabled=yes service: name=postfix state=started enabled=yes
tags: taiga tags: taiga
### FIRST, there is a lot of postgres db stuff to setup ### ### FIRST, there is a lot of postgres db stuff to setup ###
@ -80,7 +80,7 @@
tags: taiga tags: taiga
- name: Set postgresql-server to run on boot - name: Set postgresql-server to run on boot
service: name=postgresql state=running enabled=yes service: name=postgresql state=started enabled=yes
tags: taiga tags: taiga
# Make sure we have db users # Make sure we have db users
@ -169,7 +169,7 @@
tags: taiga tags: taiga
- name: set taiga-back to start - name: set taiga-back to start
service: name=taiga-back state=running enabled=yes service: name=taiga-back state=started enabled=yes
tags: taiga tags: taiga
### DONE with taiga-back ### DONE with taiga-back
@ -251,5 +251,5 @@
- httpd_can_network_connect - httpd_can_network_connect
tags: taiga tags: taiga
- service: name=nginx state=running enabled=yes - service: name=nginx state=started enabled=yes
tags: taiga tags: taiga

View file

@ -24,7 +24,7 @@
- tftp_server - tftp_server
- name: enable tftp socket service - name: enable tftp socket service
service: state=running enabled=true name=tftp.socket service: state=started enabled=true name=tftp.socket
tags: tags:
- service - service
- config - config

View file

@ -37,7 +37,7 @@
- config - config
- name: Enable and start unbound service - name: Enable and start unbound service
service: state=running enabled=true name=unbound service: state=started enabled=true name=unbound
tags: tags:
- service - service
- config - config

View file

@ -45,7 +45,7 @@
- config - config
- name: enable the service - name: enable the service
service: name=ntpd state=running enabled=true service: name=ntpd state=started enabled=true
when: ansible_cmdline.ostree is not defined when: ansible_cmdline.ostree is not defined
#- name: edit hostname to be instance name - prefix hostbase var if it exists #- name: edit hostname to be instance name - prefix hostbase var if it exists

View file

@ -41,6 +41,6 @@
- restart openvpn - restart openvpn
- name: enable openvpn service for rhel 6 - name: enable openvpn service for rhel 6
service: name=openvpn state=running enabled=true service: name=openvpn state=started enabled=true
tags: tags:
- service - service

View file

@ -41,6 +41,6 @@
- restart openvpn 7 - restart openvpn 7
- name: enable openvpn service for rhel 7 or fedora - name: enable openvpn service for rhel 7 or fedora
service: name=openvpn@openvpn state=running enabled=true service: name=openvpn@openvpn state=started enabled=true
tags: tags:
- service - service

View file

@ -20,6 +20,6 @@
- config - config
- name: enable postfix to start - name: enable postfix to start
service: name=postfix state=running enabled=true service: name=postfix state=started enabled=true
tags: tags:
- service - service

View file

@ -28,7 +28,7 @@
when: inventory_hostname not in result.list_vms when: inventory_hostname not in result.list_vms
- name: start the vm up - name: start the vm up
virt: state=running name={{ inventory_hostname }} virt: state=started name={{ inventory_hostname }}
delegate_to: "{{ vmhost }}" delegate_to: "{{ vmhost }}"
when: inventory_hostname not in result.list_vms when: inventory_hostname not in result.list_vms