Skip to content

Commit c0aed1c

Browse files
committed
only run if no target limits
1 parent 4b27225 commit c0aed1c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
ssh_config__env: "{{ inventory_file }}"
3+
ssh_config__when: "{{ ansible_limit is not defined }}"
34
ssh_config__dest_path: "~/.ssh/conf.d"
45
ssh_config__configs:
56
- Hostname {{ ansible_host | default(inventory_hostname) }}

tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
- name: SSH config
33
run_once: true
4+
when: ssh_config__when
45
block:
56
- name: Create temp fragments dir
67
ansible.builtin.tempfile:

0 commit comments

Comments
 (0)