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 22, 2019 in Ansible by Abdullah
387 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 22, 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
332 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 in Ansible by MD
• 56,780 points
37 views
0 votes
1 answer
0 votes
1 answer