I am unsuccessful debugging above things. I appreciate if someone can shed
some light into the issue and bring me into light.
I am currently using Ansible 2.2.0 Version installed on ubuntu 16.04 LTS. I
am repeatedly running playbook multiple times during entire infrastructure
playbook development.which is causing below modules changed flag to false.
apt_key and apt_repository
- name: PostgreSQL | Add PostgreSQL repository apt-key
apt_key:
id: "{{ postgresql_apt_key_id }}"
url: "{{ postgresql_apt_key_url }}"
state: present
register: apt_result
- name: PostgreSQL | Add PostgreSQL repository
apt_repository:
repo: "{{ postgresql_apt_repository }}"
state: present
update_cache: true
filename: "postgres"
when: apt_result|succeeded
register: repoadd
I am successfully when i stand new instance and run first time but no luck
after that one.I am suspecting something to do with ansible cache so i have
flushed busted cache also.
ansible-playbook playbook.yml --flush-cache
Can someone help me out here as i am stuck in middle of ocean.
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/0a594947-eb86-4f25-9c65-d6a2c72ab11d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.