- pip install ansible
# Check ansible version
- ansible --version
+ - ansible-galaxy install -r test/requirements.yml -p test/roles/
script:
# Basic role syntax check
- - ansible-playbook test/main.yml -i test --syntax-check
+ - ansible-playbook test/main.yml -i test/hosts --syntax-check
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
+localhost ansible_connection=local
postgres_listen_addresses: "{{ hostvars[inventory_hostname].ansible_default_ipv4.address }}"
pre_tasks: *pre_tasks
roles:
- - { role: postgresql, tags: ['postgres'] }
+ - { role: ansible-postgresql-role, tags: ['postgres'] }
tasks:
- name: Start postgres cluster
service: name=postgresql state=started
postgres_listen_addresses: "{{ hostvars[inventory_hostname].ansible_default_ipv4.address }}"
pre_tasks: *pre_tasks
roles:
- - { role: postgresql, tags: ['postgres'] }
+ - { role: ansible-postgresql-role, tags: ['postgres'] }
- src: chrismeyersfsu.provision_docker
name: provision_docker
version: 7a6243dfcf69f9d262877eca487bc14b62ba6960
+- src: trainline-eu.ansible_barman_role
+ name: barman
+ version: 1.0.0
--- /dev/null
+../../../ansible-postgresql-role
\ No newline at end of file
+++ /dev/null
-../../../postgresql
\ No newline at end of file