ソースを参照

We decide now in the kitchen config if ansible uses sudo or not

Till Klocke 9 年 前
コミット
16d8b675f0
2 ファイル変更2 行追加1 行削除
  1. 1 0
      .kitchen.yml
  2. 1 1
      test/application/supernode.yml

+ 1 - 0
.kitchen.yml

@@ -7,6 +7,7 @@ provisioner:
     verbose            : "vvvv"
     verbose            : "vvvv"
     ansible_config     : "test/ansible.cfg"
     ansible_config     : "test/ansible.cfg"
     idempotency_test   : False
     idempotency_test   : False
+    sudo               : True
     #chef_bootstrap_url : False
     #chef_bootstrap_url : False
     #extra_vars        : "@kitchen_vars.yml"
     #extra_vars        : "@kitchen_vars.yml"
 
 

+ 1 - 1
test/application/supernode.yml

@@ -2,7 +2,7 @@
 - name         : Fastd via pkg manager
 - name         : Fastd via pkg manager
   hosts        : all
   hosts        : all
   gather_facts : yes
   gather_facts : yes
-  sudo         : yes
+  #sudo         : no
   connection   : "{{ kitchen_connection | default('local') }}"
   connection   : "{{ kitchen_connection | default('local') }}"
   vars_files   :
   vars_files   :
                  - "supernode_pkg_vars.yml"
                  - "supernode_pkg_vars.yml"