But I had one more question here, can I delete the kestrel service using ansible??
On Tuesday, May 30, 2023 at 3:13:40 PM UTC-7 "Kosala Atapattu (කෝසල අතපත්තු)" wrote: > Just wonder whether you can disable that service manually in 5 mins? > > Sent from my iPhone > > On 31/05/2023, at 10:07 AM, Narmada Karthika <[email protected]> wrote: > > I am trying to run my playbook to check/restart/stop kestrel service on > given node. I am able to ping that node using ansible but when running the > task its is failing with connection timeout error. > > here is the playbook > --- > - name: check kestrel service > hosts: lin_dev > become: true > gather_facts: no > vars: > kestrelservicename: kestrel-api.service > > tasks: > - name: check status of kestrel service > ansible.builtin.service: > name: "{{ kestrelservicename }}" > state: started > enabled: no > become_user: root > timeout: 300 > > > > > error is > > "ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, > "changed": false, "msg": "Unable to disable service kestrel-api.service: > Failed to execute operation: Connection timed out\n"} > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/3aed1068-3bbe-4426-b98a-fc9b2818cdadn%40googlegroups.com > > <https://groups.google.com/d/msgid/ansible-project/3aed1068-3bbe-4426-b98a-fc9b2818cdadn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/47129812-bd4a-4bee-b33c-b7f5f3cbecaen%40googlegroups.com.
