Re: [ansible-project] force --check

2016-02-25 Thread Mike Biancaniello
That might be what I'm looking for, but I'm not sure.

I want to be able to run a playbook (*not* in check_mode), but tell one 
task to run *only* in check_mode.

Currently, if you run in check_mode, setting `always_run: true` on a task 
makes that task run as if it is not in check_mode. I want the opposite of 
this.

I want to be able to run:
ansible-playbook stuff.yml

stuff.yml
---
- name: stuff
  hosts: things

  tasks:
  - name: Apply awesome sauce
awesome: a=b c=d
  - name: pretend to do something
something: a=b c=d
check_mode: true




-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/12eb87ec-af70-4327-b761-bcfefa35e734%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] force --check

2016-02-18 Thread Brian Coca
there is a PR (not a feature yet) to set ansible_check_mode variable so you
can figure out if you are in check mode or not and make your execution
conditional on it.


--
Brian Coca

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7d3jWMVa4ibtNr_3cS%3D%3Dk4o013oWAXL7%3DAUBy2%3DP8Nt%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.