ansible-tuto icon indicating copy to clipboard operation
ansible-tuto copied to clipboard

Step_04 show case for idempotency is broken

Open qwazer opened this issue 8 years ago • 4 comments

With step-04/apache.yml

When I perform second try to

$ ansible-playbook -i step-04/hosts -l host1.example.org step-04/apache.yml

I always got

PLAY RECAP *********************************************************************
host1.example.org          : ok=2    changed=1    unreachable=0    failed=0   

May be set update_cache to true in apt task

In this case I got

```PLAY RECAP *********************************************************************
host1.example.org          : ok=2    changed=0    unreachable=0    failed=0 



qwazer avatar Dec 14 '16 09:12 qwazer

Thanks @qwazer I'll check this out. What Ansible version are you running ?

leucos avatar Dec 15 '16 07:12 leucos

ansible 2.2.0.0

qwazer avatar Dec 15 '16 17:12 qwazer

May be set update_cache to true in apt task

Sorry, I mean set update_cache to false

qwazer avatar Dec 15 '16 17:12 qwazer

Oh okay. So using cache_valid_time is probably the way to go.

I'll try that and report back.

Thanks for the heads up.

Le 15 déc. 2016 18:45, "qwazer" [email protected] a écrit :

May be set update_cache to true in apt task

Sorry, I mean set update_cache to false

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/leucos/ansible-tuto/issues/96#issuecomment-267393073, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJsfXZHPVV4_4POZYDmsmwj9VGiBKAhks5rIXy9gaJpZM4LMr3O .

leucos avatar Dec 15 '16 17:12 leucos