Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #196778

Re: Using config management to automate pam-auth-update(8) change

From deloptes <deloptes@gmail.com>
Newsgroups linux.debian.user
Subject Re: Using config management to automate pam-auth-update(8) change
Date 2018-06-19 20:30 +0200
Message-ID <w2ty9-5If-3@gated-at.bofh.it> (permalink)
References <w2jIu-8b1-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Darren S. wrote:

> I know that when the proper configuration is triggered that the target
> files in /etc/pam.d/ are modified, but I can't figure out how to call
> into pam-auth-update from Ansible to set the profiles. I'd rather use
> the profile and avoid troublesome manual manipulation of the files
> under /etc/pam.d. So is there a way other than interactive execution
> of pam-auth-update to configure/activate the profiles as I'd like? Or
> put another way, what is the best/correct approach to achieving my
> goal?

I would say do whatever fits your needs best. There is often no correct
approach, but rather preferred.

I would just save the modified files to the ansible repository and copy them
over (perhaps let ansible make backup before copy), or alternatively use
diff and patch (assuming target files are default and same everywhere).

regards

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Using config management to automate pam-auth-update(8) change "Darren S." <phatbuckett@gmail.com> - 2018-06-19 10:00 +0200
  Re: Using config management to automate pam-auth-update(8) change deloptes <deloptes@gmail.com> - 2018-06-19 20:30 +0200

csiph-web