]> git.immae.eu Git - github/fretlink/ansible-postgresql-role.git/commitdiff
Fix CI
authorThéophile Helleboid <theophile.helleboid@captaintrain.com>
Thu, 8 Nov 2018 22:52:14 +0000 (23:52 +0100)
committerThéophile Helleboid <theophile.helleboid@captaintrain.com>
Thu, 8 Nov 2018 23:11:09 +0000 (00:11 +0100)
.travis.yml
test/hosts
test/main.yml
test/requirements.yml
test/roles/ansible-postgresql-role [new symlink]
test/roles/postgresql [deleted symlink]

index 1ffbc33672f1d8eadda433bb184bae170241337c..7a72289e592acf3b57890195c94e72d9bba027cb 100644 (file)
@@ -16,10 +16,11 @@ install:
   - 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/
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..2302edae31b44da92e28582707b403fd7ad1342e 100644 (file)
@@ -0,0 +1 @@
+localhost ansible_connection=local
index 19ff526e3167647b8932c42e324acf013cbeee51..3224833a0d383ead1545639b8593f327f15f798d 100644 (file)
     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'] }
index 1b1155c1f457a1b69b1035ffaec71072cb716306..4c72838cade4f12dc55e8a1d1c88ffe43a22aeb9 100644 (file)
@@ -1,3 +1,6 @@
 - src: chrismeyersfsu.provision_docker
   name: provision_docker
   version: 7a6243dfcf69f9d262877eca487bc14b62ba6960
+- src: trainline-eu.ansible_barman_role
+  name: barman
+  version: 1.0.0
diff --git a/test/roles/ansible-postgresql-role b/test/roles/ansible-postgresql-role
new file mode 120000 (symlink)
index 0000000..af2d79b
--- /dev/null
@@ -0,0 +1 @@
+../../../ansible-postgresql-role
\ No newline at end of file
diff --git a/test/roles/postgresql b/test/roles/postgresql
deleted file mode 120000 (symlink)
index f47fac4..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../postgresql
\ No newline at end of file