Hello team,

I am running a role like below despite putting become true for install task 
i get error. However if run with -b it works.

Getting error while running this ,

ansible-playbook prometheusjmxrole.yml -i ../inventory/staging.yaml

The full traceback is:

WARNING: The below traceback may *not* be related to the actual failure.

  File 
"/tmp/ansible_file_payload_CA4MQM/ansible_file_payload.zip/ansible/module_utils/basic.py",
 
line 841, in set_owner_if_different

    os.lchown(b_path, uid, -1)

failed: [10.xx.xx.xxx] (item=/etc/jmx_prometheus/) => {

    "ansible_loop_var": "item",

    "changed": false,

    "gid": 0,

    "group": "root",

    "invocation": {

        "module_args": {

            "_diff_peek": null,

            "_original_basename": null,

            "access_time": null,

            "access_time_format": "%Y%m%d%H%M.%S",

            "attributes": null,

            "follow": true,

            "force": false,

            "group": "confluent",

            "mode": 493,

            "modification_time": null,

            "modification_time_format": "%Y%m%d%H%M.%S",

            "owner": "cp-kafka",

            "path": "/etc/jmx_prometheus/",

            "recurse": false,

            "selevel": null,

            "serole": null,

            "setype": null,

            "seuser": null,

            "src": null,

            "state": "directory",

            "unsafe_writes": false

        }

    },

    "item": "/etc/jmx_prometheus/",

    "mode": "0755",

    "msg": "chown failed: [Errno 1] Operation not permitted: 
'/etc/jmx_prometheus/'",

    "owner": "root",

    "path": "/etc/jmx_prometheus/",

    "secontext": "unconfined_u:object_r:etc_t:s0",

    "size": 4096,

    "state": "directory",

    "uid": 0

==============

Working fine,

ansible-playbook prometheusjmxrole.yml -i ../inventory/staging.yaml -b 


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/46addbbb-aa64-4561-aa36-719b24dc2d0dn%40googlegroups.com.

Reply via email to