diff options
author | mail_redacted_for_web | 2022-07-05 11:01:27 +0200 |
---|---|---|
committer | mail_redacted_for_web | 2022-07-05 11:01:27 +0200 |
commit | fe6da3ba9eaff27a6330eb95f1418276170eda45 (patch) | |
tree | 1c3afb3a1b97f43a2527fe820fbfcf4fc2cdcd87 | |
parent | 56075c83c919e20b9de06a36e5c5d42f9dd746d8 (diff) | |
download | dotfiles-fe6da3ba9eaff27a6330eb95f1418276170eda45.tar.bz2 |
Do not execute remote removal on localhost
-rw-r--r-- | distrib.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/distrib.yml b/distrib.yml index f625ec2..d5eb816 100644 --- a/distrib.yml +++ b/distrib.yml @@ -5,6 +5,11 @@ vars: ansible_python_interpreter: "auto_silent" tasks: + - setup: + gather_subset: + - '!all' + - '!min' + - 'platform' - name: "Check that DFDISTRIB is not empty" assert: that: @@ -92,6 +97,9 @@ tags: - "removal" - "all" + when: inventory_hostname != hostvars['localhost']['ansible_fqdn'] and + inventory_hostname != hostvars['localhost']['ansible_hostname'] and + inventory_hostname != hostvars['localhost']['ansible_hostname'] | lower - hosts: "localhost" connection: "local" gather_facts: false |