service "started" is creating multiple copies when run with playbook

10 views
Skip to first unread message

Stuart Cracraft

unread,
Mar 1, 2016, 9:57:06 PM3/1/16
to Ansible Project
Not sure what to make of this.

I have a service X running on host Y

After running the playbook with tasks/main.yml:

  - name: keep process running but do not recycle it
    service: name=X state=started enabled=yes

ansible-playbook service-X.yml

TASK [keep process running....]

changed: [bunch of hosts]

PLAY RECAP
bunch-of-hosts    : ok=2    changed=1   unreachable=0    failed=0

The host now has two X process running

Yet if I go and kill them, rerun, it leaves just one.

Now if I run it again, it puts in a second one.

Run again, a third, etc.

Fortunately I caught this before running it across the hosts in test.

This is ansible 2.0.0.2


Reply all
Reply to author
Forward
0 new messages