Added like below , still am getting error :(
- name: Subscribing a new channel
shell: sh -c "rhnreg_ks --activationkey 1-vblock20161026"
- name: Subscribing a new channel forcefully
shell: sh -c "rhnreg_ks --activationkey 1-vblock20161026 --force"
TASK [I am waiting for server to come back!]
***********************************
ok: [ccltstftsmrk1 -> localhost]
TASK [Subscribing a new channel]
***********************************************
fatal: [ccltstftsmrk1]: FAILED! => {"changed": true, "cmd": "sh -c
\"rhnreg_ks --activationkey 1-vblock20161026\"", "delta": "0:00:00.272494",
"end": "2016-11-18 10:13:52.624698", "failed": true, "rc": 1, "start":
"2016-11-18 10:13:52.352204", "stderr": "", "stdout": "You must be root to
run /usr/sbin/rhnreg_ks", "stdout_lines": ["You must be root to run
/usr/sbin/rhnreg_ks"], "warnings": []}
NO MORE HOSTS LEFT
*************************************************************
[WARNING]: Could not create retry file 'patch.retry'. [Errno 2] No
such file or directory: ''
On Friday, November 18, 2016 at 8:11:52 PM UTC+5:30, Kai Stian Olstad wrote:
>
> On 18. nov. 2016 12:49, [email protected] <javascript:> wrote:
> > - name: Subscribing a new channel
> > shell: sh -c "rhnreg_ks --activationkey 1-vblock20161026"
> > shell: sh -c "rhnreg_ks --activationkey 1-vblock20161026 --force"
>
> One task can only have one module.
> You can add a "- name" to the last shell module or add a - in front of
> the shell module.
>
> --
> Kai Stian Olstad
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/c64d5c35-9aa5-46c3-8aba-f001d57aa9dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.