aboutsummaryrefslogtreecommitdiffstats
path: root/space.yml
diff options
context:
space:
mode:
Diffstat (limited to 'space.yml')
-rw-r--r--space.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/space.yml b/space.yml
index 96b95e2..0b026df 100644
--- a/space.yml
+++ b/space.yml
@@ -1,6 +1,10 @@
---
- hosts: space
pre_tasks:
+ - name: Detect chroot
+ set_fact:
+ chroot: "{{ ansible_connection == 'chroot' or 'container' in ansible_env }}"
+ tags: always
- name: Load secrets
include_vars: '{{ item }}'
with_first_found: