This repository has been archived by the owner. It is now read-only.
Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upAnsible is unable to configure multiple permitopen authorized_key options #1715
Comments
bcoca
added
P2
bug_report
labels
Jul 11, 2015
mulander
referenced this issue
Jul 11, 2015
Closed
Ansible is unable to configure multiple permitopen authorized_key options #11559
added a commit
to linuxdynasty/ansible-modules-core
that referenced
this issue
Apr 29, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
linuxdynasty
Apr 29, 2016
Contributor
@mulander, I added a fix for this module. Please test it out when you have a chance.
|
@mulander, I added a fix for this module. Please test it out when you have a chance. |
added a commit
to linuxdynasty/ansible-modules-core
that referenced
this issue
Apr 29, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
|
@linuxdynasty are you going to send that as a pull request? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
linuxdynasty
referenced this issue
May 9, 2016
Merged
Allow authorized_keys module to accept multiple permitopen #3573
jctanner
closed this
in
#3573
Jun 20, 2016
added a commit
that referenced
this issue
Jun 20, 2016
jctanner
referenced this issue
Jun 20, 2016
Merged
Add test for multi-options in authorized_key #16375
added a commit
to ansible/ansible
that referenced
this issue
Jun 21, 2016
added a commit
to jensonb/ansible-modules-core
that referenced
this issue
Jun 21, 2016
added a commit
to svenstaro/ansible-modules-core
that referenced
this issue
Jul 12, 2016
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
mulander commentedJul 11, 2015
The ansible documentation states that:
source: http://docs.ansible.com/authorized_key_module.html
The ssh documentation states:
With the above in mind I'm testing the following ansible rule:
This results in a key being added but with subsequent permitopen options being overwritten by the last parsed value:
Please notice that all hosts and ports were replaced by
localhost:3003which is the lastpermitopenentry. This overwrites both the host & port. The issue is most probably caused by parsing the values into adictusing thepermitopenas the key. The value should be kept as an array in order not to loose configuration.Tested on ansible 1.7.2
This was initially reported as #11559 on the ansible main repository