2017-02-01 21:43:15 +03:00
## Process Isolation Overview
2019-09-17 22:49:01 +03:00
In older versions of Ansible Tower, we used a system called `proot` to isolate Tower job processes from the rest of the system.
2017-02-01 21:43:15 +03:00
2019-09-17 22:49:01 +03:00
Tower version 3.1 and later switched to using `bubblewrap` , which is a much lighter-weight and maintained process isolation system.
Tower 3.5 and later uses the process isolation feature in Ansible runner to achieve process isolation.
2017-02-01 21:43:15 +03:00
2019-03-20 01:07:38 +03:00
2017-02-01 21:43:15 +03:00
### Activating Process Isolation
2019-09-17 22:49:01 +03:00
`bubblewrap` is enabled by default; it can be turned off via Tower Config or from a Tower settings file:
2017-02-01 21:43:15 +03:00
AWX_PROOT_ENABLED = False
2019-07-03 23:42:42 +03:00
2017-02-01 21:43:15 +03:00
Process isolation, when enabled, will be used for the following Job Types:
* Job Templates - Launching jobs from regular job templates
* Ad-hoc Commands - Launching ad-hoc commands against one or more hosts in inventory
2019-09-17 22:49:01 +03:00
2017-02-01 21:43:15 +03:00
### Tunables
Process Isolation will, by default, hide the following directories from the tasks mentioned above:
2019-09-17 22:49:01 +03:00
* `/etc/tower` - To prevent exposing Tower configuration
* `/var/lib/awx` - With the exception of the current project being used (for regular job templates)
* `/var/log`
* `/tmp` (or whatever the system `temp dir` is) - With the exception of the processes's own temp files
2017-02-01 21:43:15 +03:00
2019-09-17 22:49:01 +03:00
If there is other information on the system that is sensitive and should be hidden, it can be added via the Tower Configuration Screen
2017-02-01 21:43:15 +03:00
or by updating the following entry in a tower settings file:
AWX_PROOT_HIDE_PATHS = ['/list/of/', '/paths']
2019-07-03 23:42:42 +03:00
2017-02-01 21:43:15 +03:00
If there are any directories that should specifically be exposed that can be set in a similar way:
AWX_PROOT_SHOW_PATHS = ['/list/of/', '/paths']
2019-07-03 23:42:42 +03:00
2019-09-17 22:49:01 +03:00
By default, the system will use the system's `tmp dir` (`/tmp` by default) as its staging area. This can be changed via the following setting:
2017-02-01 21:43:15 +03:00
AWX_PROOT_BASE_PATH = "/opt/tmp"
2019-07-03 23:42:42 +03:00
2019-09-17 22:49:01 +03:00
2019-07-03 23:42:42 +03:00
### Project Folder Isolation
Starting in AWX versions above 6.0.0, the project folder will be copied for each job run.
This allows playbooks to make local changes to the source tree for convenience,
such as creating temporary files, without the possibility of interference with
other jobs.