mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 16:28:43 -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:
@@ -821,7 +821,6 @@ class Job(UnifiedJob, JobOptions, SurveyJobMixin, JobNotificationMixin, TaskMana
|
|||||||
return self.inventory.hosts.only(*only)
|
return self.inventory.hosts.only(*only)
|
||||||
|
|
||||||
def start_job_fact_cache(self, destination, modification_times, timeout=None):
|
def start_job_fact_cache(self, destination, modification_times, timeout=None):
|
||||||
destination = os.path.join(destination, 'facts')
|
|
||||||
os.makedirs(destination, mode=0o700)
|
os.makedirs(destination, mode=0o700)
|
||||||
hosts = self._get_inventory_hosts()
|
hosts = self._get_inventory_hosts()
|
||||||
if timeout is None:
|
if timeout is None:
|
||||||
@@ -846,7 +845,6 @@ class Job(UnifiedJob, JobOptions, SurveyJobMixin, JobNotificationMixin, TaskMana
|
|||||||
modification_times[filepath] = os.path.getmtime(filepath)
|
modification_times[filepath] = os.path.getmtime(filepath)
|
||||||
|
|
||||||
def finish_job_fact_cache(self, destination, modification_times):
|
def finish_job_fact_cache(self, destination, modification_times):
|
||||||
destination = os.path.join(destination, 'facts')
|
|
||||||
for host in self._get_inventory_hosts():
|
for host in self._get_inventory_hosts():
|
||||||
filepath = os.sep.join(map(str, [destination, host.name]))
|
filepath = os.sep.join(map(str, [destination, host.name]))
|
||||||
if not os.path.realpath(filepath).startswith(destination):
|
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
|
# Use middleware to get request statistics
|
||||||
AWX_REQUEST_PROFILE = False
|
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
|
appdirs==1.4.2
|
||||||
asgi-amqp==1.1.3
|
asgi-amqp==1.1.3
|
||||||
asgiref==1.1.2
|
asgiref==1.1.2
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
# pip-compile requirements/requirements.in
|
# pip-compile requirements/requirements.in
|
||||||
#
|
#
|
||||||
amqp==2.3.2 # via kombu
|
amqp==2.3.2 # via kombu
|
||||||
ansible-runner==1.2.0
|
#ansible-runner==1.2.0
|
||||||
appdirs==1.4.2
|
appdirs==1.4.2
|
||||||
argparse==1.4.0 # via uwsgitop
|
argparse==1.4.0 # via uwsgitop
|
||||||
asgi-amqp==1.1.3
|
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/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-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/django-jsonbfield@fix-sqlite_serialization#egg=jsonbfield
|
||||||
|
git+https://github.com/ansible/ansible-runner@master#egg=ansible_runner
|
||||||
|
|||||||
Reference in New Issue
Block a user