mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
use ansible runner to run playbooks
* Project Updates * Jobs * Inventory Updates * System Jobs * AdHoc Commands * Notifications * Fact Cache * proot
This commit is contained in:
parent
a7cda95803
commit
8fb65b40de
@ -821,7 +821,6 @@ class Job(UnifiedJob, JobOptions, SurveyJobMixin, JobNotificationMixin, TaskMana
|
||||
return self.inventory.hosts.only(*only)
|
||||
|
||||
def start_job_fact_cache(self, destination, modification_times, timeout=None):
|
||||
destination = os.path.join(destination, 'facts')
|
||||
os.makedirs(destination, mode=0o700)
|
||||
hosts = self._get_inventory_hosts()
|
||||
if timeout is None:
|
||||
@ -846,7 +845,6 @@ class Job(UnifiedJob, JobOptions, SurveyJobMixin, JobNotificationMixin, TaskMana
|
||||
modification_times[filepath] = os.path.getmtime(filepath)
|
||||
|
||||
def finish_job_fact_cache(self, destination, modification_times):
|
||||
destination = os.path.join(destination, 'facts')
|
||||
for host in self._get_inventory_hosts():
|
||||
filepath = os.sep.join(map(str, [destination, host.name]))
|
||||
if not os.path.realpath(filepath).startswith(destination):
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1210,3 +1210,6 @@ SILENCED_SYSTEM_CHECKS = ['models.E006']
|
||||
|
||||
# Use middleware to get request statistics
|
||||
AWX_REQUEST_PROFILE = False
|
||||
|
||||
# Delete temporary directories created to store playbook run-time
|
||||
AWX_CLEANUP_PATHS = True
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
ansible-runner>=1.2.0
|
||||
#ansible-runner>=1.2.0
|
||||
appdirs==1.4.2
|
||||
asgi-amqp==1.1.3
|
||||
asgiref==1.1.2
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
# pip-compile requirements/requirements.in
|
||||
#
|
||||
amqp==2.3.2 # via kombu
|
||||
ansible-runner==1.2.0
|
||||
#ansible-runner==1.2.0
|
||||
appdirs==1.4.2
|
||||
argparse==1.4.0 # via uwsgitop
|
||||
asgi-amqp==1.1.3
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
git+https://github.com/ansible/ansiconv.git@tower_1.0.0#egg=ansiconv
|
||||
git+https://github.com/ansible/django-qsstats-magic.git@py3#egg=django-qsstats-magic
|
||||
git+https://github.com/ansible/django-jsonbfield@fix-sqlite_serialization#egg=jsonbfield
|
||||
git+https://github.com/ansible/ansible-runner@master#egg=ansible_runner
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user