This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# I want to verify that /dev/pts is mounted, and if not, mount it. | |
# Manually, this is simply: mount devpts /dev/pts -t devpts | |
# I want the resulting playbook to be idempotent and support the --check flag | |
- hosts: test | |
remote_user: testroot | |
tasks: | |
# The simple "command" way to do this. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
unicast_peer { | |
{% for host in groups['loadbalancers'] %} | |
{{ hostvars[host]['ansible_default_ipv4']['address'] }} | |
{% endfor %} | |
} | |
... |