--- # tasks file for keepalived - name: Install keepalived ansible.builtin.apt: name: keepalived when: ansible_facts['pkg_mgr'] == "apt" become: true - name: Install keepalived ansible.builtin.command: argv: - /usr/bin/rpm-ostree - install - --allow-inactive - --assumeyes - --idempotent - keepalived creates: /sysroot/ostree/repo/refs/heads/rpmostree/pkg/keepalived when: ansible_facts['pkg_mgr'] == "atomic_container" become: true notify: Apply installation - name: Flush handlers meta: flush_handlers