Merge "Switch ansible tmp for local connections"
This commit is contained in:
commit
ea44ebe886
|
@ -221,6 +221,7 @@ class AnsibleAction(actions.Action):
|
||||||
self.ssh_private_key)
|
self.ssh_private_key)
|
||||||
env_variables = {
|
env_variables = {
|
||||||
'HOME': self.work_dir,
|
'HOME': self.work_dir,
|
||||||
|
'ANSIBLE_LOCAL_TEMP': self.work_dir,
|
||||||
'ANSIBLE_CONFIG': ansible_config_path
|
'ANSIBLE_CONFIG': ansible_config_path
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -482,6 +483,7 @@ class AnsiblePlaybookAction(base.TripleOAction):
|
||||||
self.ssh_private_key)
|
self.ssh_private_key)
|
||||||
env_variables = {
|
env_variables = {
|
||||||
'HOME': self.work_dir,
|
'HOME': self.work_dir,
|
||||||
|
'ANSIBLE_LOCAL_TEMP': self.work_dir,
|
||||||
'ANSIBLE_CONFIG': ansible_config_path,
|
'ANSIBLE_CONFIG': ansible_config_path,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -159,6 +159,8 @@ class TripleoInventory(object):
|
||||||
'vars': {
|
'vars': {
|
||||||
'ansible_host': 'localhost',
|
'ansible_host': 'localhost',
|
||||||
'ansible_connection': 'local',
|
'ansible_connection': 'local',
|
||||||
|
# see https://github.com/ansible/ansible/issues/41808
|
||||||
|
'ansible_remote_tmp': '/tmp/ansible-${USER}',
|
||||||
'auth_url': self.auth_url,
|
'auth_url': self.auth_url,
|
||||||
'cacert': self.cacert,
|
'cacert': self.cacert,
|
||||||
'os_auth_token':
|
'os_auth_token':
|
||||||
|
|
|
@ -55,6 +55,7 @@ class AnsibleActionTest(base.TestCase):
|
||||||
|
|
||||||
env = {
|
env = {
|
||||||
'HOME': action.work_dir,
|
'HOME': action.work_dir,
|
||||||
|
'ANSIBLE_LOCAL_TEMP': action.work_dir,
|
||||||
'ANSIBLE_CONFIG': ansible_config_path
|
'ANSIBLE_CONFIG': ansible_config_path
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,6 +106,7 @@ class AnsiblePlaybookActionTest(base.TestCase):
|
||||||
pb = os.path.join(action.work_dir, 'playbook.yaml')
|
pb = os.path.join(action.work_dir, 'playbook.yaml')
|
||||||
env = {
|
env = {
|
||||||
'HOME': action.work_dir,
|
'HOME': action.work_dir,
|
||||||
|
'ANSIBLE_LOCAL_TEMP': action.work_dir,
|
||||||
'ANSIBLE_CONFIG': ansible_config_path,
|
'ANSIBLE_CONFIG': ansible_config_path,
|
||||||
'ANSIBLE_CALLBACK_WHITELIST': 'profile_tasks',
|
'ANSIBLE_CALLBACK_WHITELIST': 'profile_tasks',
|
||||||
'PROFILE_TASKS_TASK_OUTPUT_LIMIT': '0',
|
'PROFILE_TASKS_TASK_OUTPUT_LIMIT': '0',
|
||||||
|
|
|
@ -213,6 +213,7 @@ class TestInventory(base.TestCase):
|
||||||
'hosts': ['undercloud'],
|
'hosts': ['undercloud'],
|
||||||
'vars': {'ansible_connection': 'local',
|
'vars': {'ansible_connection': 'local',
|
||||||
'ansible_host': 'localhost',
|
'ansible_host': 'localhost',
|
||||||
|
'ansible_remote_tmp': '/tmp/ansible-${USER}',
|
||||||
'auth_url': 'xyz://keystone.local',
|
'auth_url': 'xyz://keystone.local',
|
||||||
'cacert': 'acacert',
|
'cacert': 'acacert',
|
||||||
'os_auth_token': 'atoken',
|
'os_auth_token': 'atoken',
|
||||||
|
@ -281,6 +282,7 @@ class TestInventory(base.TestCase):
|
||||||
'hosts': ['undercloud'],
|
'hosts': ['undercloud'],
|
||||||
'vars': {'ansible_connection': 'local',
|
'vars': {'ansible_connection': 'local',
|
||||||
'ansible_host': 'localhost',
|
'ansible_host': 'localhost',
|
||||||
|
'ansible_remote_tmp': '/tmp/ansible-${USER}',
|
||||||
'auth_url': 'xyz://keystone.local',
|
'auth_url': 'xyz://keystone.local',
|
||||||
'cacert': 'acacert',
|
'cacert': 'acacert',
|
||||||
'os_auth_token':
|
'os_auth_token':
|
||||||
|
@ -377,6 +379,8 @@ class TestInventory(base.TestCase):
|
||||||
'Undercloud': {'hosts': {'undercloud': {}},
|
'Undercloud': {'hosts': {'undercloud': {}},
|
||||||
'vars': {'ansible_connection': 'local',
|
'vars': {'ansible_connection': 'local',
|
||||||
'ansible_host': 'localhost',
|
'ansible_host': 'localhost',
|
||||||
|
'ansible_remote_tmp':
|
||||||
|
'/tmp/ansible-${USER}',
|
||||||
'auth_url': 'xyz://keystone.local',
|
'auth_url': 'xyz://keystone.local',
|
||||||
'cacert': 'acacert',
|
'cacert': 'acacert',
|
||||||
'os_auth_token': 'atoken',
|
'os_auth_token': 'atoken',
|
||||||
|
|
Loading…
Reference in New Issue