Ansible with AWS Parameter store

0 votes

I have my AWS parameter store configuration something like this:

I would like to add these parameters into my playbook. Anyone knows how to?

- name: Airflow
  rabbitmq_user:
    user: airflow
    password: password
    state: present
    force: yes
  become: yes
  become_method: sudo
  become_user: root
  register: airflow_dbsetup
  notify:
    - restart rabbitmq-server
Mar 24, 2019 in Ansible by Dipti
788 views

1 answer to this question.

0 votes

Hey @Dipti, have a look at the aws_ssm module provided by ansible. You can try something like this:

- name: Airflow
  rabbitmq_user:
    user: "{{ lookup('aws_ssm', 'rabbitmq_user', region='us-east-1') }}"
    password: "{{ lookup('aws_ssm', 'rabbitmq_password', region='us-east-1') }}
    state: present
    force: yes
  become: yes
  become_method: sudo
  become_user: root
  register: airflow_dbsetup
  notify:
    - restart rabbitmq-server
answered Mar 24, 2019 by Rhea

Related Questions In Ansible

0 votes
2 answers

Issue creating AWS VPC with Ansible

You can use the details given in ...READ MORE

answered Aug 16, 2018 in Ansible by Priyaj
• 58,090 points
931 views
0 votes
1 answer

How to create an Elastic Load Balancer in AWS with Ansible Playbook?

Hi@akhtar, You can find one module in ansible ...READ MORE

answered Oct 12, 2020 in Ansible by MD
• 95,440 points
922 views
0 votes
1 answer

How to configure the Nginx server in AWS with Ansible Playbook?

Hi@akhtar, To configure the Nginx server in AWS, ...READ MORE

answered Oct 12, 2020 in Ansible by MD
• 95,440 points
2,796 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,508 views
+2 votes
1 answer
0 votes
1 answer

Create Network Load Balancer on AWS using Ansible

Hey @Neha, you can create NLB using ...READ MORE

answered Mar 24, 2019 in Ansible by Arc
1,017 views
0 votes
1 answer

Playbook to get my current IP - Ansible and AWS

Hey Komal, that's pretty simple. Try this: - ...READ MORE

answered Mar 24, 2019 in Ansible by Aarohi
1,098 views
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