Skip to content

Instantly share code, notes, and snippets.

@yoshikaw
Created February 12, 2017 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoshikaw/867fbec72fcda279fe81c85dfebd2e07 to your computer and use it in GitHub Desktop.
Save yoshikaw/867fbec72fcda279fe81c85dfebd2e07 to your computer and use it in GitHub Desktop.
Ansible実践ガイド 4-2のKeepalivedの起動確認のタスクは、portを指定しないとtaimuautoまで待ってしまうのではないか?それにlocal_actionのwait_forではbecomeは不要なのでは。 https://gitlab.com/shkitayama/ansible_practical_guide/blob/master/effective_ansible/sec4/roles/keepalived/tasks/configure.yml#L38
- name: configure / Wait for keepalived reload
become: no
local_action:
module: wait_for
host: "{{ item.address }}"
port: "{{ item.port }}"
delay: 5
timeout: 60
with_items: "{{ keepalived_vip_interfaces }}"
run_once: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment