On Sat, May 18, 2013 at 2:29 AM, Andreas Piesk <
a.p...@gmx.net> wrote:
> switch the quotes. quote the argument string with single quotes to keep the
> shell from messing with it:
>
> ansible -m lineinfile -a 'dest=/etc/ssh/sshd_config backup=yes backrefs=yes
> regexp="^(AllowGroups .*)$" line="\\1 $groupname"' -vvv -s -K local
>
>
> regards,
> -ap
It worked! Thanks.
Admittedly, this is an off-band change to the standard sshd_config
file -- necessary for those one-off tasks to provide temporary SSH
access to certain groups. ("$groupname" is just a placeholder I used;
it will be replaced by the actual group name when invoked. Sorry for
the misunderstanding.)
Thanks again, all!
--
Ian Dexter R. Marquez
http://iandexter.com