please someone help me to get answer for my query!

---
- hosts: testuser
  become: yes
  tasks:
  - name: removelines
    blockinfile:
      block: |

              ################ request ###################
              User_Alias      S3_OPS=pams3fedqaadmin
              S3_OPS          ALL=(ALL)       ALL
              ####################################################"
      path: /tmp/test
      state: absent
      backup: yes


 ansible-playbook sudolineinfile.yml
SUDO password:

PLAY [xerox] 
*************************************************************************************************************************

TASK [Gathering Facts] 
***************************************************************************************************************
ok: [usamachine]

TASK [removelines] 
*******************************************************************************************************************
ok: [usamachine]

PLAY RECAP 
***************************************************************************************************************************
usamachine              : ok=2    changed=0    unreachable=0    failed=0


-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/76d77d71-f295-4d34-8d26-95e1c0d105be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to