Skip to content

Commit

Permalink
only run if no target limits
Browse files Browse the repository at this point in the history
  • Loading branch information
resmo committed Oct 20, 2024
1 parent 4b27225 commit c0aed1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
ssh_config__env: "{{ inventory_file }}"
ssh_config__when: "{{ ansible_limit is not defined }}"
ssh_config__dest_path: "~/.ssh/conf.d"
ssh_config__configs:
- Hostname {{ ansible_host | default(inventory_hostname) }}
Expand Down
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
- name: SSH config
run_once: true
when: ssh_config__when
block:
- name: Create temp fragments dir
ansible.builtin.tempfile:
Expand Down

0 comments on commit c0aed1c

Please sign in to comment.