Skip to content

Commit

Permalink
Set Ansible settings in a separate variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandruanghel committed Mar 1, 2016
1 parent b5847ea commit 79f0e3d
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 6 deletions.
5 changes: 4 additions & 1 deletion bootstrap_dedicated.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash

ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -f 20 -i inventory/static playbooks/bootstrap.yml
VARS="${VARS} ANSIBLE_SCP_IF_SSH=y ANSIBLE_HOST_KEY_CHECKING=False"

export $VARS
ansible-playbook -f 20 -i inventory/static playbooks/bootstrap.yml
4 changes: 3 additions & 1 deletion bootstrap_rax.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@

export RAX_CREDS_FILE=$(grep rax_credentials_file playbooks/group_vars/all|cut -d"'" -f2)
export RAX_REGION=$(grep rax_region playbooks/group_vars/all|cut -d"'" -f2)
VARS="${VARS} ANSIBLE_SCP_IF_SSH=y ANSIBLE_HOST_KEY_CHECKING=False"

ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i inventory/rax.py playbooks/bootstrap.yml
export $VARS
ansible-playbook -f 20 -i inventory/rax.py playbooks/bootstrap.yml
5 changes: 4 additions & 1 deletion hortonworks_dedicated.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash

ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -f 20 -i inventory/static playbooks/hortonworks.yml
VARS="${VARS} ANSIBLE_SCP_IF_SSH=y ANSIBLE_HOST_KEY_CHECKING=False"

export $VARS
ansible-playbook -f 20 -i inventory/static playbooks/hortonworks.yml
4 changes: 3 additions & 1 deletion hortonworks_rax.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@

export RAX_CREDS_FILE=$(grep rax_credentials_file playbooks/group_vars/all|cut -d"'" -f2)
export RAX_REGION=$(grep rax_region playbooks/group_vars/all|cut -d"'" -f2)
VARS="${VARS} ANSIBLE_SCP_IF_SSH=y ANSIBLE_HOST_KEY_CHECKING=False"

ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i inventory/rax.py playbooks/hortonworks.yml
export $VARS
ansible-playbook -f 20 -i inventory/rax.py playbooks/hortonworks.yml
5 changes: 4 additions & 1 deletion tools_dedicated.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash

ansible-playbook -vvv -i inventory/static playbooks/tools.yml
VARS="${VARS} ANSIBLE_SCP_IF_SSH=y ANSIBLE_HOST_KEY_CHECKING=False"

export $VARS
ansible-playbook -f 20 -i inventory/static playbooks/tools.yml

4 changes: 3 additions & 1 deletion tools_rax.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@

export RAX_CREDS_FILE=$(grep rax_credentials_file playbooks/group_vars/all|cut -d"'" -f2)
export RAX_REGION=$(grep rax_region playbooks/group_vars/all|cut -d"'" -f2)
VARS="${VARS} ANSIBLE_SCP_IF_SSH=y ANSIBLE_HOST_KEY_CHECKING=False"

ansible-playbook -vvv -i inventory/rax.py playbooks/tools.yml
export $VARS
ansible-playbook -f 20 -i inventory/rax.py playbooks/tools.yml

0 comments on commit 79f0e3d

Please sign in to comment.