Use parameters stored in aws parameter store in ansible playbook

0 votes
I have a few parameters stored in AWS parameter store. Now how do I use those parameters in my ansible playbook?
Jul 23, 2019 in Ansible by Abdullah
1,635 views

1 answer to this question.

0 votes

Use aws_ssm module for this purpose:

- name: example
  rabbitmq_user:
    user: "{{ lookup('aws_ssm', 'user', region='us-east-1') }}"
    password: "{{ lookup('aws_ssm', 'password', region='us-east-1') }}
    state: present
    force: yes
  become: yes
  become_method: sudo
  become_user: root
  register: example
  notify:
    - restart rabbitmq-server
answered Jul 23, 2019 by Vishnu

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Ansible with AWS Parameter store

Hey @Dipti, have a look at the ...READ MORE

answered Mar 24, 2019 in Ansible by Rhea
967 views
0 votes
1 answer

How to delete a key pair in AWS from Ansible-Playbook?

Hi@akhtar, You can use the ec2_key module in ...READ MORE

answered Aug 12, 2020 in Ansible by MD
• 95,460 points
1,103 views
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP