Re: [ansible-project] Ansilbe apt handling of dpkg_options

2017-01-16 Thread adam . frederick
Thank you! That did it! On Friday, January 13, 2017 at 9:28:12 AM UTC-6, Kai Stian Olstad wrote: > > On 09. des. 2016 17:41, adam.fr...@gmail.com wrote: > > I am attempting to perform the follow in order to only upgrade ubuntu > > security updates... > > > > apt: upgrade=yes

[ansible-project] Re: Ansilbe apt handling of dpkg_options

2017-01-13 Thread adam . frederick
Any help on this? This is still an issue. It appears the module ignores any other source files I have and just uses sources.list. Any suggestions? On Friday, December 9, 2016 at 10:41:54 AM UTC-6, adam.fr...@gmail.com wrote: > > I am attempting to perform the follow in order to only upgrade

[ansible-project] Ansilbe apt handling of dpkg_options

2016-12-09 Thread adam . frederick
I am attempting to perform the follow in order to only upgrade ubuntu security updates... apt: upgrade=yes update_cache=yes dpkg_options='Dir::Etc::SourceList=/etc/apt/security.sources.list' and I receive the following error message... FAILED! => {"changed": false, "failed": true, "msg":

[ansible-project] Re: lineinfile unexpected behavior

2016-04-12 Thread adam . frederick
I understand the functionality of lineinfile a bit better now and solved this with... - name: uncomment a line lineinfile: backup=yes state=present dest=/etc/ssh/sshd_config regexp='^#?Banner' line='Banner /etc/issue.net' Also, it appears I can utilize the original regexp with a

[ansible-project] lineinfile unexpected behavior

2016-04-12 Thread adam . frederick
I have the following in a playbook to uncomment a line. The first time I run it everything works fine. If I run it again it inserts a "Banner /etc/issue.net" at the EOF. Is there a better way to do this? - name: uncomment a line lineinfile: backup=yes state=present