)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"027954a12b47203bc0a509fcd5fa711ddb02ca40","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"4193ca65_a386eee7","updated":"2023-02-21 16:31:10.000000000","message":"Confirmed that using the facts here uses the remote facts, even with delegate_to: localhost.","commit_id":"bf764bbbe452df8af1a97f998a1a4d73ef6a8adb"},{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"39a51b612c7d62f7ccbe72803fe5a5c810cd9817","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"e58597ab_d3f6deb7","updated":"2022-06-02 07:00:57.000000000","message":"I marked it as WIP because I am not sure if it is using the expected user and group in this context. It would need to be tested.","commit_id":"bf764bbbe452df8af1a97f998a1a4d73ef6a8adb"},{"author":{"_account_id":25600,"name":"Ebbex","display_name":"ebbex","email":"openstack@slipsprogrammor.no","username":"ebbex"},"change_message_id":"e7dfec6c37a748d9e0111c0a92c8463f7dba0396","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"ae776831_94180535","updated":"2023-01-03 16:20:53.000000000","message":"The lookup will always run and get stuff from the machine initiating the ansible command.\n\nansible_facts are facts gathered on the playhost.\n\nHere are the results from a test-playbook;\n\n ok: [zabbix] \u003d\u003e {\n     \"msg\": \"lookup: USER\u003derikberg, UID\u003d\"\n }\n ok: [zabbix] \u003d\u003e {\n     \"msg\": \"facts: user_id\u003dalmalinux, user_uid\u003d1000\"\n }\n\nNot sure why I can\u0027t get a result for a lookup(\u0027env\u0027, \u0027UID\u0027), but it\u0027s in the 30.000\u0027s\n\nI\u0027d stick with the names and not the ids though.","commit_id":"bf764bbbe452df8af1a97f998a1a4d73ef6a8adb"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"48abba1bd2980d7b599418e0e0d63484f99de947","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":1,"id":"ec31ea60_437f02ca","in_reply_to":"ae776831_94180535","updated":"2023-01-04 09:30:47.000000000","message":"Is your playbook using local_action or delegate_to: localhost?","commit_id":"bf764bbbe452df8af1a97f998a1a4d73ef6a8adb"},{"author":{"_account_id":25600,"name":"Ebbex","display_name":"ebbex","email":"openstack@slipsprogrammor.no","username":"ebbex"},"change_message_id":"7f13c837a9a29a7a34d0c2dd8caad0951b0969e7","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":1,"id":"9c7c6f2d_b38f41b6","in_reply_to":"ec31ea60_437f02ca","updated":"2023-01-04 13:16:53.000000000","message":"\u003e Is your playbook using local_action or delegate_to: localhost?\n\nAha, I didn\u0027t notice the local_action (nor what the actual problem was)\n\nFor local_action or delegate_to: localhost you\u0027re better off sticking with lookup. Otherwise you\u0027d have to use delegate_facts and accessing them via hostvars or something to that effect; https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_delegation.html#delegating-facts\n\nAs for fixing the actual problem, I think the best option is actually just removing the group, and setting mode to whatever we\u0027re comfortable with, 755, 750 or 700. (Why do we care about the group at all?) I tried using lookup(\u0027env\u0027, \u0027GROUPS\u0027), although it returns some value from my shell, it amounts to nada via ansible.","commit_id":"bf764bbbe452df8af1a97f998a1a4d73ef6a8adb"}],"ansible/kolla-openstack.yml":[{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"ff55e4ac3fbc75f782f1752ad0cec1f5838c6f76","unresolved":true,"context_lines":[{"line_number":62,"context_line":"            module: file"},{"line_number":63,"context_line":"            path: \"{{ hostvars.localhost.image_cache_path }}\""},{"line_number":64,"context_line":"            state: directory"},{"line_number":65,"context_line":"            owner: \"{{ ansible_facts.user_uid }}\""},{"line_number":66,"context_line":"            group: \"{{ ansible_facts.user_gid }}\""},{"line_number":67,"context_line":"          become: True"},{"line_number":68,"context_line":"          when: \u003e-"},{"line_number":69,"context_line":"            not image_cache_stat.stat.exists or"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"ea56c354_e04a8fb2","line":66,"range":{"start_line":65,"start_character":0,"end_line":66,"end_character":49},"updated":"2022-06-17 09:30:53.000000000","message":"Does it get the user \u0026 group for localhost, rather than the controller?","commit_id":"bf764bbbe452df8af1a97f998a1a4d73ef6a8adb"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"b1e0c1e04df99db310bbaf05facd3f871835ff25","unresolved":true,"context_lines":[{"line_number":62,"context_line":"            module: file"},{"line_number":63,"context_line":"            path: \"{{ hostvars.localhost.image_cache_path }}\""},{"line_number":64,"context_line":"            state: directory"},{"line_number":65,"context_line":"            owner: \"{{ ansible_facts.user_uid }}\""},{"line_number":66,"context_line":"            group: \"{{ ansible_facts.user_gid }}\""},{"line_number":67,"context_line":"          become: True"},{"line_number":68,"context_line":"          when: \u003e-"},{"line_number":69,"context_line":"            not image_cache_stat.stat.exists or"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"b8c6234f_f632848f","line":66,"range":{"start_line":65,"start_character":0,"end_line":66,"end_character":49},"in_reply_to":"acd56006_516c537c","updated":"2023-01-04 09:29:46.000000000","message":"We generally use the uid/gid facts elsewhere, doesn\u0027t seem to be a problem.","commit_id":"bf764bbbe452df8af1a97f998a1a4d73ef6a8adb"},{"author":{"_account_id":25600,"name":"Ebbex","display_name":"ebbex","email":"openstack@slipsprogrammor.no","username":"ebbex"},"change_message_id":"7f13c837a9a29a7a34d0c2dd8caad0951b0969e7","unresolved":true,"context_lines":[{"line_number":62,"context_line":"            module: file"},{"line_number":63,"context_line":"            path: \"{{ hostvars.localhost.image_cache_path }}\""},{"line_number":64,"context_line":"            state: directory"},{"line_number":65,"context_line":"            owner: \"{{ ansible_facts.user_uid }}\""},{"line_number":66,"context_line":"            group: \"{{ ansible_facts.user_gid }}\""},{"line_number":67,"context_line":"          become: True"},{"line_number":68,"context_line":"          when: \u003e-"},{"line_number":69,"context_line":"            not image_cache_stat.stat.exists or"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"38f5c9ce_92f50b33","line":66,"range":{"start_line":65,"start_character":0,"end_line":66,"end_character":49},"in_reply_to":"b8c6234f_f632848f","updated":"2023-01-04 13:16:53.000000000","message":"Ok","commit_id":"bf764bbbe452df8af1a97f998a1a4d73ef6a8adb"},{"author":{"_account_id":25600,"name":"Ebbex","display_name":"ebbex","email":"openstack@slipsprogrammor.no","username":"ebbex"},"change_message_id":"e7dfec6c37a748d9e0111c0a92c8463f7dba0396","unresolved":true,"context_lines":[{"line_number":62,"context_line":"            module: file"},{"line_number":63,"context_line":"            path: \"{{ hostvars.localhost.image_cache_path }}\""},{"line_number":64,"context_line":"            state: directory"},{"line_number":65,"context_line":"            owner: \"{{ ansible_facts.user_uid }}\""},{"line_number":66,"context_line":"            group: \"{{ ansible_facts.user_gid }}\""},{"line_number":67,"context_line":"          become: True"},{"line_number":68,"context_line":"          when: \u003e-"},{"line_number":69,"context_line":"            not image_cache_stat.stat.exists or"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"acd56006_516c537c","line":66,"range":{"start_line":65,"start_character":0,"end_line":66,"end_character":49},"in_reply_to":"db93f266_252ba0c8","updated":"2023-01-03 16:20:53.000000000","message":"You might want to stick with user_id and group_id since they will return names as $USER would.","commit_id":"bf764bbbe452df8af1a97f998a1a4d73ef6a8adb"},{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"78cb58f69c6dee18bcd6ea01efc26d4e354525f1","unresolved":true,"context_lines":[{"line_number":62,"context_line":"            module: file"},{"line_number":63,"context_line":"            path: \"{{ hostvars.localhost.image_cache_path }}\""},{"line_number":64,"context_line":"            state: directory"},{"line_number":65,"context_line":"            owner: \"{{ ansible_facts.user_uid }}\""},{"line_number":66,"context_line":"            group: \"{{ ansible_facts.user_gid }}\""},{"line_number":67,"context_line":"          become: True"},{"line_number":68,"context_line":"          when: \u003e-"},{"line_number":69,"context_line":"            not image_cache_stat.stat.exists or"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"db93f266_252ba0c8","line":66,"range":{"start_line":65,"start_character":0,"end_line":66,"end_character":49},"in_reply_to":"ea56c354_e04a8fb2","updated":"2022-06-17 09:47:58.000000000","message":"Still trying to figure this out.","commit_id":"bf764bbbe452df8af1a97f998a1a4d73ef6a8adb"}]}
