Skip to content

Instantly share code, notes, and snippets.

- name: Install Apache
package:
name: "{{ item }}"
state: present
with_items: "{{ apache_os[ansible_os_family].packages }}"
# In vars/main.yaml:
apache_os:
RedHat:
# ...
# FreeBSD
ansible 2.2.0.0
config file = /usr/home/me/work/ansible/ansible.cfg
configured module search path = Default w/o overrides
# CentOS 7
ansible 2.2.0.0
config file = /buildbot/ansible_deploy/build/ansible.cfg
configured module search path = Default w/o overrides
[defaults]
forks = 50
gathering = smart
inventory = stg/stg_inventory
[ssh_connection]
ssh_args = -o ControlMaster=auto -o ControlPersist=600s
pipelining = True
- name: testing playbook
user: root
gather_facts: yes
hosts:
- host.example.com
vars:
ansible_python_interpreter: /usr/bin/python2
a:
RedHat:
packages:
2017-02-03 21:44:35+0000 [Broker,1,172.30.79.236] worker 'bit03-spawner' attaching from IPv4Address(TCP, 'IP', PORT)
2017-02-03 21:44:35+0000 [Broker,1,172.30.79.236] Worker.getWorkerInfo is unavailable - falling back to deprecated buildslave API
2017-02-03 21:44:35+0000 [Broker,1,172.30.79.236] Got workerinfo from 'bit03-spawner'
2017-02-03 21:44:35+0000 [-] bot attached
2017-02-03 21:44:35+0000 [-] worker bit03-spawner cannot attach
Traceback (most recent call last):
Failure: twisted.internet.error.AlreadyCalled: Tried to cancel an already-called event.
2017-02-03 21:46:09+0000 [-] Received SIGTERM, shutting down.
2017-02-03 21:46:09+0000 [-] doing housekeeping for master 1 buildbot-travis:/buildbot