Nested dir creation

21 views
Skip to first unread message

Satya S

unread,
Aug 19, 2021, 9:23:39 AMAug 19
to Ansible Development
Hello All,

I'm trying to the below:

    dir_var: {app1: [name: [a1,a2], dev: [1,2], prod: [11,12]],
           app2: [name: [a3,a4], dev: [11,12], prod: [21.22]]}
    env: dev

should create folders like this if env is 'dev'
a1
a1/1
a1/2
a2
a2/1
a2/2
a3
a3/11
a3/12
a4
a4/11
a4/12

please help.

Thanks
Reply all
Reply to author
Forward
0 new messages