Hi!
I use json facts caching and sometimes this files expires (last modified
time > than configured fact_caching_timeout).
This is a rare problem, but if it arises - I have non-obvious errors in
stdout after running my playbook (like "ansible_fqdn is not defined in
host_vars", etc).
My idea:
Hi
On Mon, 15 Apr 2019 at 21:20, federico montaldo
wrote:
> Hi folks:
>
> I got the following playbook
>
> ---
> - hosts: win-ravendb-prd
> tasks:
> - name: Get disk facts
> win_disk_facts:
>
> - name: Ip address
> debug:
> var: ansible_ip_addresses
>
> - name:
Thank you. This saved me from reinstalling WSL :-)
Cheers,
Jamz
On Monday, December 18, 2017 at 12:36:13 PM UTC-6, Stephen Nesbitt wrote:
>
>
> Well I got it to work with the following command:
>
> pip install --upgrade --force-reinstall --no-cache-dir ansible
>
>
> Some kind of caching issue?
>
Hi folks:
I got the following playbook
---
- hosts: win-ravendb-prd
tasks:
- name: Get disk facts
win_disk_facts:
- name: Ip address
debug:
var: ansible_ip_addresses
- name: Grab first disk
set_fact:
disk: '{{
I am trying to edit ansible_facts created by network-engine inside a loop
but cannot figure out the syntax.
I have a bunch of VLANs as a dict.
```
ok: [burnside-lab-srp.gw.mcgill.ca] => {
"ansible_facts": {
"cisco_ios": {
"vlans": {
"1": {
Please clarify a couple questions:
1. You're running the ansible command from a Linux (RedHat, Ubuntu, CentOS,
Debian) system, correct?
2. The playbook you're using has these tasks:
- name: Copy script from local to remote server
win_copy:
src: files
dest: C:\
I am only guessing here but I would assume 'replace' just doesn't use regex
syntax to accomplish the same goal.
On Monday, April 15, 2019 at 9:00:44 AM UTC-4, ryad9...@gmail.com wrote:
>
> Hi all,
>
> I have two task :
>
> - name: "Utilisation du replace dans un fichier"
> set_fact:
>
Did you set up the private key as a credential in Tower? It would appear
that you can't authenticate to the remote host when you run via tower. In
the UI, there's an option for what credential to use for the job template.
I don't have an instance in front of me to walk you through it exactly, but
Hi all,
I have two task :
- name: "Utilisation du replace dans un fichier"
set_fact:
mon_fichier: "{{ lookup('file', '/home/ansible/file.txt') |
replace('\n', ' ') }}"
and
- name: "Utilisation du regex_replace dans un fichier"
set_fact:
new_file: "{{ lookup('file',