On 20.03.2018 23:27, orderedchaos...@gmail.com wrote:
I want to set it up so there is a current ansible playbook run
timestamp
set at the start of every playbook run so I can use this var in various
roles.
The only way so far I have found is to set a pre_task with set fact in
every playbook.
Hello,
I have a number of network tasks that take a long time to run, for example
firmware update tasks. In Ansible 2.4 I extended the command_timeout by
using the timeout variable on an individual task basis per
On 26.03.2018 11:31, Martin Simovic wrote:
I am observing following behaviour using ansible on set of Ubuntu-1604,
SLES-12 and CentOS-7 hosts.
Environment variables, normally avaiable for login shell (/bin/bash)
are
not avaiable via ansible "setup" or "shell" modules for Ubuntu-16.04.
Yet
the
I changed the playbook file to the following, no longer error, but the
execution has been stuck in the win_shell step, why?
- hosts: dbServer
tasks:
- win_shell: "New-PSDrive -Name temp_path -PSProvider FileSystem -Root
'192.168.227.198\\Microsoft SQL Server' -Credential New-Object
Thank you Kai for your quick answer.
However, this is happening when I use command module with args:
executable=/bin/bash too. This kind of rules the dash theory out.
It is almost like /etc/profile is ignored in any case.
Still, on Centos/Sles it is sourced regardless of /bin/sh or /bin/bash
After installing CredSSP, ansible can access Windows via the domain user,
but it will fail in ansible tower.
Error: CredSSP: requests auth method is CredSSP, but requests- CredSSP is
not installed.
在 2018年3月23日星期五 UTC+8下午6:23:23,Jordan Borean写道:
>
> The docs should be more explicit, you don't
Yes, still according to man pages /bin/sh started as login shell should
source /etc/profile (as it does on e.g. CENTOS)
On Monday, 26 March 2018 13:44:31 UTC+2, Kai Stian Olstad wrote:
>
> On 26.03.2018 12:10, Martin Simovic wrote:
> > However, this is happening when I use command module with
Any suggestions on where to find some documentation on "the config there" ?
I've looked through a few source code to check which key to add to
my /etc/ansible/openstack.yml file.
All I could find was :
I really need to cache my inventory, my cloud provider has set an
unlimitted timeout when
Any suggestions on where to find some documentation on "the config there" ?
I've looked through a few source code to check which key to add to
my /etc/ansible/openstack.yml file.
All I could find was
: https://github.com/ansible/ansible/blob/devel/contrib/inventory/openstack.yml
I really need
My playbook is broken since i upgraded to v2.5
Here is the simplest example i have:
The code from my playbook:
- name: Install Winzip Package
win_shell: 'cmd /C C:\Users\ansible\Downloads\install_winzip.cmd'
args:
creates: 'C:\Program Files\WinZip\WINZIP64.EXE'
Here is the output:
TASK
Other recipients:
Hello, I have a playbook here which seems to do what it needs to do but
hangs It actually copies the file using ftp but cannot find a way to exit
out of the program --- - name: backup of juniper using expect hosts:
juniper connection: local
Hello,
I have a playbook here
On 26.03.2018 12:10, Martin Simovic wrote:
However, this is happening when I use command module with args:
executable=/bin/bash too. This kind of rules the dash theory out.
It is almost like /etc/profile is ignored in any case.
bash working the same as dash in this aspect.
Still, on
Hi,
I'm trying to replicate an installation of CKAN through Ansible in a Ubuntu
14.04 virtual machine.
But i have this error:
---
# Ansible install/setup ckan
- hosts: localhost
become: true
vars:
my_package_url:
http://packaging.ckan.org/python-ckan_2.6-trusty_amd64.deb
Nevermind. (:
On Mon, Mar 26, 2018, 1:04 PM Marcos Alano wrote:
> What the value of 'now' variable?
>
> On Mon, Mar 26, 2018, 1:01 PM MKPhil wrote:
>
>> In a playbook, a Variable gets registered even if "when" clause is
>> false...Is this a bug?
On 26.03.2018 15:24, Martin Simovic wrote:
Yes, still according to man pages /bin/sh started as login shell should
source /etc/profile (as it does on e.g. CENTOS)
As I wrote in my first reply since Ansible is just executing a
command(s), it doesn't use login shell/interactive shell, it uses
In a playbook, a Variable gets registered even if "when" clause is
false...Is this a bug?
Consider this playbook
---
- name: When test
gather_facts: false
hosts: all
vars:
now: true
tasks:
- name: Get hostname
shell: hostname
register: output
when: now == true
What the value of 'now' variable?
On Mon, Mar 26, 2018, 1:01 PM MKPhil wrote:
> In a playbook, a Variable gets registered even if "when" clause is
> false...Is this a bug?
>
> Consider this playbook
>
> ---
> - name: When test
> gather_facts: false
> hosts: all
>
Ansible Tower's upstream opensource project is called AWX. If you don't
want to pay for support you can always go AWX instead of Ansible
Tower. https://github.com/ansible/awx
On Thursday, March 22, 2018 at 11:05:37 AM UTC-5, Albert Shamsiyan wrote:
>
> Thx for the reply sdoran
>
> So using
The when: clause affects task execution, while register: puts into a
variable the status and output of a task.
So 'skipped' is a 'valid status of a task', which is what then is put
into the registered variable, this way subsequent tasks can do this:
when: registeredvar is skipped
to execute
A node is a host in inventory that is managed by Tower.
--
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 post
Run a task - as root - similar to
- name: Create the pip cache directory with the right permissions
file: dest={{ ckan_libdir }}/.cache owner={{ ckan_shell_user }} group={{
ckan_shell_user }} state=directory
before using pip inside the ckan virtualenv
Best,
Andrea
> On 26 Mar 2018, at
Thanks for the report, I am able to replicate this on 2.5 and have raised a
Github issue for it https://github.com/ansible/ansible/issues/37967.
The issue is the path `C:\Program Files\WinZip` does not exist and the
Test-AnsiblePath method is throwing a different exception in this case
which
Hi,
I have upgraded to Ansible 2.5 right now and facing an issue with variable
hosts such as:
---
- hosts: "{{ dbhosts }}"
gather_facts: false
vars_prompt:
- name: dbhosts
prompt: "Which hosts would you like to run?"
private: no
default: all
tasks:
- debug:
var: hostvars
ERROR! The
Sidenote: here is the PR to fix this issue
https://github.com/ansible/ansible/pull/37968
--
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
24 matches
Mail list logo