Re: [ansible-project] [Ansible-Project] - Failed to create tmp directory

2022-11-03 Thread Dick Visser
Did you follow the recommendation that is literally part of the
error message?


On Thu, 3 Nov 2022 at 21:39, Vivek Khochare 
wrote:

> Hi All
> I am getting the error "Failed to create temporary directory.In Some
> Cases,you may have been able to authenticate and did not have permission on
> the target directory.Consider changing the remote tmp path in ansible.cfg
> to a path rooted in \"/tmp\"
>
> Can someone please help me on this?
>
>
> Thanks
>
> --
> 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/CAK32Knon2LonWjyBJ5FvdqEM1ix-rtzwL2ieRR1%3DmH%2BnB8PA-w%40mail.gmail.com
> 
> .
>
-- 
Sent from Gmail Mobile

-- 
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/CAF8BbLZqi%3D8UFXNvs5ztsmn4beSuhJaWxjL9LoPU%3DWQ4g8Ru3w%40mail.gmail.com.


[ansible-project] [Ansible-Project] - Failed to create tmp directory

2022-11-03 Thread Vivek Khochare
Hi All
I am getting the error "Failed to create temporary directory.In Some
Cases,you may have been able to authenticate and did not have permission on
the target directory.Consider changing the remote tmp path in ansible.cfg
to a path rooted in \"/tmp\"

Can someone please help me on this?


Thanks

-- 
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/CAK32Knon2LonWjyBJ5FvdqEM1ix-rtzwL2ieRR1%3DmH%2BnB8PA-w%40mail.gmail.com.


Re: [ansible-project] Special variable group_names list items out of order

2022-11-03 Thread Vladimir Botka
On Thu, 3 Nov 2022 03:57:19 -0700 (PDT)
Goran Kuzmanović  wrote:

> https://github.com/ansible/ansible/issues/73208 when the explanation 
> provided was "The group_names variable is purposefully alphanumerically 
> sorted by name, and not sorted by definition order." ... get the list 
> of groups on which you can rely, level-wise ?

Use *ansible-inventory* and parse the inventory on your own. Given
the example from the issue

shell> cat hosts
all:
  children:
NonprodAppDefault:
  children:
CHG0240322:
  vars:
controller_env: test
  hosts:
hdqqclansiap001:
hdqqclbcbwtb001:


1) Declare the variables

inventory: "{{ out.stdout|from_yaml }}"
my_groups: {}
my_groups_0: "{{ inventory.all.children }}"

2) Parse the inventory

- command: ansible-inventory --list --yaml
  register: out

gives

  inventory:
all:
  children:
NonprodAppDefault:
  children:
CHG0240322:
  hosts:
hdqqclansiap001:
  controller_env: test
hdqqclbcbwtb001:
  controller_env: test
ungrouped: {}

3) Create the dictionary of your groups

- set_fact:
my_groups: "{{ my_groups|
   combine({item: _groups}) }}"
  loop: "{{ my_groups_0.keys()|list }}"
  vars:
_groups: "{{ (my_groups_0[item].children|
  default({})).keys()|list }}"


gives (probably what you want)

  my_groups:
NonprodAppDefault:
- CHG0240322
ungrouped: []


-- 
Vladimir Botka

-- 
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/20221103155539.740d0389%40gmail.com.


pgplg59gGHEsu.pgp
Description: OpenPGP digital signature


[ansible-project] Special variable group_names list items out of order

2022-11-03 Thread Goran Kuzmanović
Hello,

While searching for my use-case, I stumbled upon this issue 
https://github.com/ansible/ansible/issues/73208 when the explanation 
provided was "The group_names variable is purposefully alphanumerically 
sorted by name, and not sorted by definition order." However, this 
explanation doesn't tell me for what purpose (in my mind, I could sort the 
list if I needed it that way), while I would benefit of having it sorted 
depending on the level. Nevertheless, is there a workaround to get the list 
of groups on which you can rely, level-wise ?

Thanks,
Goran

-- 
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/2b9e1a49-7eda-44e8-a6ce-823ef8c9f244n%40googlegroups.com.