Skip to content

Commit

Permalink
Merge pull request #2 from zeelax/imprv/delegate
Browse files Browse the repository at this point in the history
Delegate tasks to use ansible's interpreter (venv or smth.)
  • Loading branch information
ahelal committed May 26, 2016
2 parents f6a577e + aabf0db commit d7c2ffe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
overwrite: "{{ aws_route53_overwrite | default(omit) }}"
retry_interval: "{{ aws_route53_retry | default(omit) }}"
when: aws_route53_value | default("") != "" and aws_route53_value is string

- debug: var=aws_route53_value
connection: local
delegate_to: localhost

- name: Update a multi DNS records
route53:
Expand All @@ -26,3 +26,5 @@
retry_interval: "{{ item.retry | default(omit) }}"
with_items: "{{ aws_route53_value }}"
when: aws_route53_value | default("") != "" and aws_route53_value is iterable and aws_route53_value is not string
connection: local
delegate_to: localhost

0 comments on commit d7c2ffe

Please sign in to comment.