playbook creates duplicate configuration lines

Bug #1732528 reported by Brian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Expired
Undecided
Unassigned

Bug Description

Running this playbook will create multiple entries for the same option in some configuration files. The primary file I've seen this in is /etc/ssh/sshd_config. Rather than modifying an existing entry, the playbook ignores it and appends a new entry to the end of the file. I would recommend changing this to modify any existing entry and avoid duplicates.

Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :

Is this happening on ansible-hardening role?

Or are you thinking of the aio playbook?

Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :

Could you give us more details about how to reproduce the issue?

Changed in openstack-ansible:
status: New → Incomplete
Revision history for this message
Brian (bwhitehd) wrote : Re: [Bug 1732528] Re: playbook creates duplicate configuration lines

It happens with the ansible-hardening role. Simply apply the changes to
sshd_config and you will see multiple lines of the same option.

On Tue, Dec 5, 2017 at 9:41 AM Jean-Philippe Evrard <
<email address hidden>> wrote:

> Could you give us more details about how to reproduce the issue?
>
> ** Changed in: openstack-ansible
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1732528
>
> Title:
> playbook creates duplicate configuration lines
>
> Status in openstack-ansible:
> Incomplete
>
> Bug description:
> Running this playbook will create multiple entries for the same option
> in some configuration files. The primary file I've seen this in is
> /etc/ssh/sshd_config. Rather than modifying an existing entry, the
> playbook ignores it and appends a new entry to the end of the file. I
> would recommend changing this to modify any existing entry and avoid
> duplicates.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openstack-ansible/+bug/1732528/+subscriptions
>
--
Sent from Gmail Mobile

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openstack-ansible because there has been no activity for 60 days.]

Changed in openstack-ansible:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.