]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: fix task in rhcs_setup that changes vagrant box to rhel7
authorAndrew Schoen <aschoen@redhat.com>
Wed, 22 Mar 2017 17:38:12 +0000 (12:38 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 22 Mar 2017 17:38:12 +0000 (12:38 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
tests/functional/rhcs_setup.yml
tox.ini

index 4752749f5980596920b84f57a5c5c93bef232476..700633781775238f84c7ea1dd1302f24e980c9c0 100644 (file)
@@ -1,5 +1,5 @@
 ---
-- hosts: local
+- hosts: all
   gather_facts: false
   become: yes
   tags:
@@ -10,7 +10,7 @@
       replace:
         regexp: "centos/7"
         replace: "rhel7"
-        path: "{{ change_dir }}/vagrant_variables.yml"
+        dest: "{{ change_dir }}/vagrant_variables.yml"
       when: change_dir is defined
 
 - hosts: all
diff --git a/tox.ini b/tox.ini
index be778e1577f7d5f2c14dcc0929ea133b7386571a..f9b2d5b572485b3cd3c960e38f46b58ca2992958 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -96,7 +96,7 @@ changedir=
   update_dmcrypt: {toxinidir}/tests/functional/centos/7/dmcrypt-dedicated-journal
   update_cluster: {toxinidir}/tests/functional/centos/7/cluster
 commands=
-  rhcs: ansible-playbook -vv -i {changedir}/hosts {toxinidir}/tests/functional/rhcs_setup.yml --extra-vars "change_dir={changedir}" --tags "vagrant_setup"
+  rhcs: ansible-playbook -vv -i "localhost," -c local {toxinidir}/tests/functional/rhcs_setup.yml --extra-vars "change_dir={changedir}" --tags "vagrant_setup"
 
   vagrant up --no-provision {posargs:--provider=virtualbox}
   bash {toxinidir}/tests/scripts/generate_ssh_config.sh {changedir}