aws_ssm module in Ansible

0 votes
What exactly does the aws_ssm module do? Can you also please give an example? Thank you
Mar 24 in Ansible by Kiran
43 views

1 answer to this question.

0 votes

According to the official docs, this module can be used for the following:

  • Get the value for an Amazon Simple Systems Manager parameter or a hierarchy of parameters. 
  • If looking up an explicitly listed parameter by name which does not exist then the lookup will return a None value which will be interpreted by Jinja2 as an empty string. You can use the `default` filter to give a default value in this case but must set the second parameter to true (see examples below)
  • When looking up a path for parameters under it a dictionary will be returned for each path. If there is no parameter under that path then the return will be successful but the dictionary will be empty.
  • If the lookup fails due to lack of permissions or due to an AWS client error then the aws_ssm will generate an error, normally crashing the current ansible task.
answered Mar 24 by Yesha

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer

Using lxc_container module in ansible

This mostly happens when you've not installed ...READ MORE

answered Aug 10, 2018 in Ansible by DareDev
• 6,810 points
87 views
0 votes
1 answer

Role of subelement module in an Ansible playbook

Hey @Rahul thanks for a better question ...READ MORE

answered Jan 16 in Ansible by Emily
83 views
0 votes
1 answer

lineinfile module in Ansible

You can use the lineinfile module for ...READ MORE

answered Jan 16 in Ansible by Emily
90 views
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

Requirements to used aws_ssm module

The below requirements are needed on the ...READ MORE

answered Mar 24 in Ansible by Hitesh
13 views
0 votes
1 answer

Ansible with AWS Parameter store

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

answered Mar 24 in Ansible by Rhea
60 views