Change sudo to become in ansible resources
As we are using ansible 2.0, we should move from sudo to become to avoid deprecation. Change-Id: Ia084759b9c38f5c045ab14eab3af63a2ad33069f Closes-bug: 1547430
This commit is contained in:
parent
d5f7e90132
commit
e51ac240c3
@ -1,5 +1,5 @@
|
|||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
sudo: yes
|
become: yes
|
||||||
vars:
|
vars:
|
||||||
var1: 'playbook'
|
var1: 'playbook'
|
||||||
roles:
|
roles:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: '*'
|
- hosts: '*'
|
||||||
sudo: yes
|
become: yes
|
||||||
vars:
|
vars:
|
||||||
default1: playbook
|
default1: playbook
|
||||||
tasks:
|
tasks:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- shell: rm -f {{item}}
|
- shell: rm -f {{item}}
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- template:
|
- template:
|
||||||
src: {{templates_dir}}/source
|
src: {{templates_dir}}/source
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: '*'
|
- hosts: '*'
|
||||||
sudo: yes
|
become: yes
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
# this is default variables, they will be overwritten by resource one
|
# this is default variables, they will be overwritten by resource one
|
||||||
vars:
|
vars:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- shell: echo `/sbin/ifconfig`
|
- shell: echo `/sbin/ifconfig`
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- shell: docker stop {{ resource_name }}
|
- shell: docker stop {{ resource_name }}
|
||||||
- shell: docker rm {{ resource_name }}
|
- shell: docker rm {{ resource_name }}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- docker:
|
- docker:
|
||||||
name: {{ resource_name }}
|
name: {{ resource_name }}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- lineinfile: create=yes dest=/etc/dnsmasq.d/no_pxe_{{exclude_mac_pxe | replace(':', '_')}}.conf line="dhcp-host={{exclude_mac_pxe}},set:nopxe"
|
- lineinfile: create=yes dest=/etc/dnsmasq.d/no_pxe_{{exclude_mac_pxe | replace(':', '_')}}.conf line="dhcp-host={{exclude_mac_pxe}},set:nopxe"
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- shell: docker --version
|
- shell: docker --version
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- shell: docker stop {{ resource_name }}
|
- shell: docker stop {{ resource_name }}
|
||||||
- shell: docker rm {{ resource_name }}
|
- shell: docker rm {{ resource_name }}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- docker:
|
- docker:
|
||||||
name: {{ resource_name }}
|
name: {{ resource_name }}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- docker:
|
- docker:
|
||||||
name: {{ resource_name }}
|
name: {{ resource_name }}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: glance api container
|
- name: glance api container
|
||||||
docker:
|
docker:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- docker:
|
- docker:
|
||||||
command: /bin/bash -c "glance-manage db_sync && /usr/bin/glance-api"
|
command: /bin/bash -c "glance-manage db_sync && /usr/bin/glance-api"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- shell: echo 'removed'
|
- shell: echo 'removed'
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
vars:
|
vars:
|
||||||
ip: {{ ip }}
|
ip: {{ ip }}
|
||||||
api_port: {{ api_port }}
|
api_port: {{ api_port }}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: glance registry container
|
- name: glance registry container
|
||||||
docker:
|
docker:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- docker:
|
- docker:
|
||||||
#command: /bin/bash -c "glance-manage db_sync && /usr/bin/glance-registry"
|
#command: /bin/bash -c "glance-manage db_sync && /usr/bin/glance-registry"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# TODO
|
# TODO
|
||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- file: path={{ config_dir.value['src'] }} state=absent
|
- file: path={{ config_dir.value['src'] }} state=absent
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# TODO
|
# TODO
|
||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
vars:
|
vars:
|
||||||
config_dir: {src: {{ config_dir['src'] }}, dst: {{ config_dir['dst'] }}}
|
config_dir: {src: {{ config_dir['src'] }}, dst: {{ config_dir['dst'] }}}
|
||||||
haproxy_ip: {{ ip }}
|
haproxy_ip: {{ ip }}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# TODO
|
# TODO
|
||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
vars:
|
vars:
|
||||||
config_dir: {src: {{ config_dir['src'] }}, dst: {{ config_dir['dst'] }}}
|
config_dir: {src: {{ config_dir['src'] }}, dst: {{ config_dir['dst'] }}}
|
||||||
haproxy_ip: {{ ip }}
|
haproxy_ip: {{ ip }}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
- hosts: [{{ host }}]
|
- hosts: [{{ host }}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- service:
|
- service:
|
||||||
name: haproxy
|
name: haproxy
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- apt:
|
- apt:
|
||||||
name: haproxy
|
name: haproxy
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: haproxy container
|
- name: haproxy container
|
||||||
docker:
|
docker:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- apt:
|
- apt:
|
||||||
name: haproxy
|
name: haproxy
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- service:
|
- service:
|
||||||
name: haproxy
|
name: haproxy
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: Remove hosts file
|
- name: Remove hosts file
|
||||||
shell: echo '# flushed by ansible' > /etc/hosts
|
shell: echo '# flushed by ansible' > /etc/hosts
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
{% for val in hosts %}
|
{% for val in hosts %}
|
||||||
- name: Create hosts entries for {{val['name']}} => {{val['ip']}}
|
- name: Create hosts entries for {{val['name']}} => {{val['ip']}}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
{% for val in hosts %}
|
{% for val in hosts %}
|
||||||
- name: Create hosts entries for {{val['name']}} => {{val['ip']}}
|
- name: Create hosts entries for {{val['name']}} => {{val['ip']}}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- file: path={{config_dir}} state=absent
|
- file: path={{config_dir}} state=absent
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
vars:
|
vars:
|
||||||
admin_token: {{admin_token}}
|
admin_token: {{admin_token}}
|
||||||
keystone_host: {{ ip }}
|
keystone_host: {{ ip }}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: keystone role
|
- name: keystone role
|
||||||
#TODO: not implemented in module
|
#TODO: not implemented in module
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: install python-keystoneclient
|
- name: install python-keystoneclient
|
||||||
shell: apt-get install python-keystoneclient
|
shell: apt-get install python-keystoneclient
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# TODO
|
# TODO
|
||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: keystone container
|
- name: keystone container
|
||||||
docker:
|
docker:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: keystone container
|
- name: keystone container
|
||||||
docker:
|
docker:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{ host }}]
|
- hosts: [{{ host }}]
|
||||||
sudo: yes
|
become: yes
|
||||||
vars:
|
vars:
|
||||||
ip: {{ip}}
|
ip: {{ip}}
|
||||||
port: {{port}}
|
port: {{port}}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{ host }}]
|
- hosts: [{{ host }}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: keystone service and endpoint
|
- name: keystone service and endpoint
|
||||||
keystone_service:
|
keystone_service:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: keystone tenant
|
- name: keystone tenant
|
||||||
keystone_user: endpoint=http://{{keystone_host}}:{{keystone_port}}/v2.0/ token={{admin_token}} tenant={{tenant_name}} state=absent
|
keystone_user: endpoint=http://{{keystone_host}}:{{keystone_port}}/v2.0/ token={{admin_token}} tenant={{tenant_name}} state=absent
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: install python-keystoneclient
|
- name: install python-keystoneclient
|
||||||
shell: apt-get install python-keystoneclient
|
shell: apt-get install python-keystoneclient
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: keystone user
|
- name: keystone user
|
||||||
#TODO: not implemented in module
|
#TODO: not implemented in module
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: install python-keystoneclient
|
- name: install python-keystoneclient
|
||||||
shell: apt-get install python-keystoneclient
|
shell: apt-get install python-keystoneclient
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- file: path={{modules_path}} state=absent
|
- file: path={{modules_path}} state=absent
|
||||||
- file: path={{modules_path}}/../Puppetfile state=absent
|
- file: path={{modules_path}}/../Puppetfile state=absent
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
# XXX: check apt package http://packages.ubuntu.com/trusty/ruby/librarian-puppet
|
# XXX: check apt package http://packages.ubuntu.com/trusty/ruby/librarian-puppet
|
||||||
- shell: gem install librarian-puppet --no-ri --no-rdoc
|
- shell: gem install librarian-puppet --no-ri --no-rdoc
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: '*'
|
- hosts: '*'
|
||||||
sudo: yes
|
become: yes
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
# this is default variables, they will be overwritten by resource one
|
# this is default variables, they will be overwritten by resource one
|
||||||
vars:
|
vars:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: '*'
|
- hosts: '*'
|
||||||
sudo: yes
|
become: yes
|
||||||
roles:
|
roles:
|
||||||
- { role: "lxc_hosts", tags: [ "lxc-host", "host-setup" ] }
|
- { role: "lxc_hosts", tags: [ "lxc-host", "host-setup" ] }
|
||||||
post_tasks:
|
post_tasks:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- shell: echo 'Managed by solar' > /etc/apt/sources.list
|
- shell: echo 'Managed by solar' > /etc/apt/sources.list
|
||||||
when: {{ensure_other_removed}}
|
when: {{ensure_other_removed}}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: mariadb db
|
- name: mariadb db
|
||||||
mysql_db:
|
mysql_db:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: mariadb db
|
- name: mariadb db
|
||||||
mysql_db:
|
mysql_db:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: mariadb container
|
- name: mariadb container
|
||||||
docker:
|
docker:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- file: path=/var/lib/docker/data/{{resource_name}} state=directory
|
- file: path=/var/lib/docker/data/{{resource_name}} state=directory
|
||||||
- name: mariadb container
|
- name: mariadb container
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: mariadb user
|
- name: mariadb user
|
||||||
mysql_user:
|
mysql_user:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: mariadb user
|
- name: mariadb user
|
||||||
mysql_user:
|
mysql_user:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: mariadb user
|
- name: mariadb user
|
||||||
mysql_user:
|
mysql_user:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [ {{ host }} ]
|
- hosts: [ {{ host }} ]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- file: path=/root/openrc state=absent
|
- file: path=/root/openrc state=absent
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{ host }}]
|
- hosts: [{{ host }}]
|
||||||
sudo: yes
|
become: yes
|
||||||
vars:
|
vars:
|
||||||
tenant: {{tenant}}
|
tenant: {{tenant}}
|
||||||
user_name: {{user_name}}
|
user_name: {{user_name}}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- file: path={{config_dir}} state=absent
|
- file: path={{config_dir}} state=absent
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
vars:
|
vars:
|
||||||
admin_user: {{admin_user}}
|
admin_user: {{admin_user}}
|
||||||
admin_password: {{admin_password}}
|
admin_password: {{admin_password}}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- rabbitmq_user: user={{user_name}}
|
- rabbitmq_user: user={{user_name}}
|
||||||
vhost={{vhost_name}}
|
vhost={{vhost_name}}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- rabbitmq_user: user={{user_name}}
|
- rabbitmq_user: user={{user_name}}
|
||||||
password={{password}}
|
password={{password}}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- rabbitmq_vhost: name={{vhost_name}}
|
- rabbitmq_vhost: name={{vhost_name}}
|
||||||
state=absent
|
state=absent
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- rabbitmq_vhost: name={{vhost_name}}
|
- rabbitmq_vhost: name={{vhost_name}}
|
||||||
state=present
|
state=present
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- shell: riak-admin cluster join {{join_to}}
|
- shell: riak-admin cluster join {{join_to}}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
# - shell: sleep 30
|
# - shell: sleep 30
|
||||||
- shell: riak-admin cluster plan
|
- shell: riak-admin cluster plan
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- shell: riak-admin cluster join {{join_to}}
|
- shell: riak-admin cluster join {{join_to}}
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- apt:
|
- apt:
|
||||||
name: riak
|
name: riak
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
# those below are mostly for tests
|
# those below are mostly for tests
|
||||||
- shell: killall -u riak
|
- shell: killall -u riak
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{host}}]
|
- hosts: [{{host}}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- service:
|
- service:
|
||||||
name: riak
|
name: riak
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# TODO: this shouldn't be outside of the resource directory
|
# TODO: this shouldn't be outside of the resource directory
|
||||||
- hosts: all
|
- hosts: all
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- script: /vagrant/bootstrap/playbooks/files/ubuntu-ansible.sh
|
- script: /vagrant/bootstrap/playbooks/files/ubuntu-ansible.sh
|
||||||
#- include: celery.yaml tags=['master'] celery_dir=/var/run/celery
|
#- include: celery.yaml tags=['master'] celery_dir=/var/run/celery
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: '*'
|
- hosts: '*'
|
||||||
sudo: yes
|
become: yes
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
# this is default variables, they will be overwritten by resource one
|
# this is default variables, they will be overwritten by resource one
|
||||||
vars:
|
vars:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{ host }}]
|
- hosts: [{{ host }}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- shell: pip install git+git://github.com/Mirantis/solar-agent.git
|
- shell: pip install git+git://github.com/Mirantis/solar-agent.git
|
||||||
- shell: start-stop-daemon --stop --make-pidfile --pidfile /tmp/solar_agent.pid --startas /bin/bash -- -c "exec /usr/local/bin/solar_agent run --port {{solar_agent_port}} --base tcp > /tmp/solar_agent.log 2>&1"
|
- shell: start-stop-daemon --stop --make-pidfile --pidfile /tmp/solar_agent.pid --startas /bin/bash -- -c "exec /usr/local/bin/solar_agent run --port {{solar_agent_port}} --base tcp > /tmp/solar_agent.log 2>&1"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{ host }}]
|
- hosts: [{{ host }}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- shell: pip install git+git://github.com/Mirantis/solar-agent.git
|
- shell: pip install git+git://github.com/Mirantis/solar-agent.git
|
||||||
- shell: start-stop-daemon --stop --make-pidfile --pidfile /tmp/solar_agent.pid --startas /bin/bash -- -c "exec /usr/local/bin/solar_agent run --port {{solar_agent_port}} --base tcp > /tmp/solar_agent.log 2>&1"
|
- shell: start-stop-daemon --stop --make-pidfile --pidfile /tmp/solar_agent.pid --startas /bin/bash -- -c "exec /usr/local/bin/solar_agent run --port {{solar_agent_port}} --base tcp > /tmp/solar_agent.log 2>&1"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{ host }}]
|
- hosts: [{{ host }}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- apt:
|
- apt:
|
||||||
name: python-libtorrent
|
name: python-libtorrent
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{ host }}]
|
- hosts: [{{ host }}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: remove VG
|
- name: remove VG
|
||||||
lvg: vg={{name}} state=absent force=yes
|
lvg: vg={{name}} state=absent force=yes
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: [{{ host }}]
|
- hosts: [{{ host }}]
|
||||||
sudo: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
apt: name=lvm2 state=present
|
apt: name=lvm2 state=present
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- hosts: '*'
|
- hosts: '*'
|
||||||
sudo: yes
|
become: yes
|
||||||
vars:
|
vars:
|
||||||
id: 42
|
id: 42
|
||||||
group: 239.1.10.2
|
group: 239.1.10.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user