Does this help?
I created a directory structure with four files:
$ find /tmp/dirsize/ -ls | cut -c 18-
drwxrwxr-x 5 dan dan 100 May 11 14:59 /tmp/dirsize/
drwxrwxr-x 2 dan dan60 May 11 15:00 /tmp/dirsize/d3
-rw-rw-r-- 1 dan dan 5242880 May 11
On 11.05.2019 20:40, Saranya N wrote:
> I have a list of dictionary variables something like below in vars file.
>
> App01:
> A : value1
> B : value2
> C : value3
>
> App02:
>A : value4
>C : value5
>B : value6
>
> And so on...
>
> When I run my playbook with -e option app=01
I have a list of dictionary variables something like below in vars file.
App01:
A : value1
B : value2
C : value3
App02:
A : value4
C : value5
B : value6
And so on...
When I run my playbook with -e option app=01 or app=App01
I want to use App01 variables in with_items in my task .
Im trying to set a variable based on below condition where templname is an
external variable with below options
ansible-playbook -i hosts -e "templname=CTrl03_kerbs_09"
OR
ansible-playbook -i hosts -e "templname=CTrl05"
set_fact:
dbn: "{{ CTrl03_kerbs_09 | lower }}
dbnum: "{ %
On 11.05.2019 19:15, Kai Stian Olstad wrote:
> On 11.05.2019 18:38, Michael Ströder wrote:
>> I'm testing my ansible roles with ansible 2.8rc3.
>> The roles work with ansible 2.7.10.
>>
>> This cron task fails with 2.8rc3 using Python 2.7.16 (see details
>> attached at message end):
>>
>> - name:
On 11.05.2019 18:38, Michael Ströder wrote:
> I'm testing my ansible roles with ansible 2.8rc3.
> The roles work with ansible 2.7.10.
>
> This cron task fails with 2.8rc3 using Python 2.7.16 (see details
> attached at message end):
>
> - name: "Remove obsolete CRON jobs from
HI!
I'm testing my ansible roles with ansible 2.8rc3.
The roles work with ansible 2.7.10.
This cron task fails with 2.8rc3 using Python 2.7.16 (see details
attached at message end):
- name: "Remove obsolete CRON jobs from /etc/cron.d/aedir_tools"
cron:
name: "{{ item }}"
state: absent
I have been looking for a module for something similar to the du command. I
would like to have a play that looks at the log directory to detect if it's a
certian size or larger and if so find the sub folders with gbs of data and
remove or tar that data up.
So far I am not finding that and