Dear All,
I have an query/issue.
>From my windows powershell server i am able to execute powershell scripts
on remote windows machines on same domain without asking for password using
the domain account.
If i try the same thing via ansible, i get an error.
Executing just Invoke-command
On Tuesday, 12 January 2016 21:51:15 UTC, Greg DeKoenigsberg wrote:
>
> On Sat, Jan 9, 2016 at 4:52 PM, Brandon Jozsa > wrote:
> > Greg,
> >
> > Did you ever find anything out about this? I was asking folks in the IRC
> > channel about this today. I've been using the Kubernetes and CoreOS
>
Hi,
I would like to define a dict in group_vars/all.yml where a key inside this
dict would consist of a fixed string concatened to the result of : "{{
hostvars[inventory_hostname]['ansible_hostname'] }}".
This should looks like following:
✘ root@lab:~/playbook# cat group_vars/all.yml
---
my_di
Hi everyone,
We have a large 'hosts' file with many different host groups defined.
When running ansible-playbook command with '-i' pointing to our hosts file,
Ansible will then call our custom code in the VarsModule class of our vars
plugin. Ansible calls the get_group_vars() function for each
Greg,
Might something like this https://github.com/ekmartin/slack-irc be good
interim, so people can use either IRC or Slack and the messages sync
between ?
Cheers
On Tuesday, 12 January 2016 21:51:15 UTC, Greg DeKoenigsberg wrote:
>
> On Sat, Jan 9, 2016 at 4:52 PM, Brandon Jozsa > wrote:
ansible version : 2.1.1.0
- hosts: hhh
gather_facts: no
become: yes
tasks:
- block:
- name: hhh conf
shell: bash /tmp/hhh.sh
async: 2000
poll: 0
register: update_hhh
- name: check hhh
async_status: jid={{ up
Hi,
I am using Ansible PywinRm to connect and run powershell on the remote
windows 2012 R2 server.
I am getting the error
access denied on new cluster command on adding the second node to the
cluster.
Below are the connection details
import winrm
s = winrm.Session('192.X.X.X',auth=('adminis
I have the same question, and I found an unofficial module which does the
thing you want
https://github.com/openstack-ansible/openstack-ansible-modules/blob/master/keystone_service
It seems the official module lose this feature when it upgrated to a newer
version..
On Tuesday, July 26, 2016 at 4
Hello, I'm getting a module failure when trying to use 'replace' and
with_together.
Is there something wrong with my script? thank you.
Tasks:
- name: Gather Current DB Settings - Database Name
shell: grep -v "|" /tmp/directory{{ date }}/{{ item
}}/application/config/production/datab
First of all: my apologies for the chosen subject. I can't think of
anything better than this..
Anyway - what I'd like to accomplish is the following: I have a brand new,
shiny, fresh host which I'll bootstrap with our current ansible playbooks.
We set 2 host vars for our backup solution: backu
Hi all,
I am stuck with below strange issue that ansible halts or goes into sleep
mode when trying to start jboss as a root user using ansible on redhat
machine1
Accordingly below are the details of the scripts that are on redhat machine1
*ansible.cfg*
[defaults]
host_key_checking = Fals
Hi
I am using ansible (version 2.2) for installing a software, where I require
"*expect*" to be used. I have installed the pexpect module (version 4.2)
and Python (version 2.7) in the local and remote server.
However, on running ansible script, getting following error:
"module_name": "expec
Number of network interfaces varies in our environment and we have atleast
5 variants, hardcoding is not an option.
This playbook need to check {{ ansible_interfaces }} and then get the
status of all available interfaces active status.
from the example snippet below
"ansible_eth1": {
I have workaround for this. You basically have to use "include" as a
function. Let's say your {{users}} structure looks like this:
users:
ssh_keys:
- somekeyfdsfdsfdsfsdfsdyttytry
- someotherkeyfdsryekfdlmgdfm
In your main.yml there would be:
- include: ssh_key.yml
_users_ssh_k
Hi everyone
I'm trying to setup multiple proxmox network interfaces for my containers
with Ansible.
Here is the code that I'm using. You can see in the netif property that I
sometimes want to add a second interface to the container.
- name: Create instances
proxmox:
vmid={{ item.id }}
Hello,
I'm testing dell06_command on a dell N2048 switch without luck. I have this
simple playbook:
---
- hosts: 10.10.10.10
gather_facts: no
connection: local
vars:
cli:
host: "10.10.10.10"
username: "user1"
password: "secret1"
auth_pass: "secret2"
Hi,
I am using ansible to create Cluster on windows 2012 R2 Server where i am
getting issues like
access denied on new cluster command on adding the second node to the
cluster.
I am using kerberos authentication since i needed to login using domain
account as opposed to local account. Also i a
Still same error:
msg: rmtree failed: [Errno 39] Directory not empty
- name: Removing jenkins folder
file: path={{ base_dir }}/tomcat7/webapps/jenkins state=absent
force=yes
On Friday, April 4, 2014 at 11:41:55 PM UTC+5:30, Michael DeHaan wrote:
>
> Perhaps the force is cau
Hello, I'm getting a module failure when trying to use 'replace' and
with_together.
Is there something wrong with my script? thank you.
Tasks:
- name: Gather Current DB Settings - Database Name
shell: grep -v "|" /tmp/directory{{ date }}/{{ item
}}/application/config/production/datab
I am also seeing when: not work with include_role. The "a" reported above
is just the first letter of Thiago's condition (ansible_hostname |
search("stack-1-sql.*"). I've got a boolean, etcd_enabled, so my when:
etcd_enabled produces "The conditional check 'e' failed"
On Monday, November 21, 20
Using a default ansible configure,when a Ansible command sended to a remote
machine and executed in ssh,where can I find the command record or history
in the remote machine to check the command be executed or not?
--
You received this message because you are subscribed to the Google Groups
"A
Hi all,
I've been looking into this for some time now, and I think I definitely can
use some help here.
What I want is to set a variable from a task specific to one host from a
group, with a value that is set dynamically by the task outcome.
Then next, I want to use this variable by another pl
Hi,
I would like to define a dict in group_vars/all.yml where a key inside this
dict would consist of a fixed string concatened to the result of : "{{
hostvars[inventory_hostname]['ansible_hostname'] }}".
This should looks like following:
✘ root@lab:~/playbook# cat group_vars/all.yml
---
my_di
Hi everyone,
My ansible version is : 2.2.0.0
I make a powershell script to deploy a new VM on vcenter.
Ansible correctly work with windows system but i have some trouble.
I would like ansible take my arguments for the script for each new host by
the definition hots file in host_vars
But I don
I think that is normal behaviour with sudo.
Unless you specifically configure a to use sudo without password.
Check doc about SUDO
Rodolfo
El viernes, 25 de noviembre de 2016, 16:25:58 (UTC+1), stac...@gmail.com
escribió:
>
>
>
> Issue -
>
> [sysadm@ccldevcftsebs1 ~]$ sudo yum repolist -v
>
Hi!
What I mean by the title: In roles we can have a "files" directory, with
files that could be copied to server. I would like to have those files
outside of the role, they should be provided by my playbook and not the
role. What is a recommended way of achieving it?
Best wishes.
--
You rece
Hello Everyone,
I'm new to Ansible, and I ended up having a problem with my playbook to
install psql. I already tried everything and searched everywhere.
When I perform the following task:
- name: Ensure database is created
> become_user: postgres
> become: true
> postgresql_db: name={{ d
Hi there,
I'm trying to create an ansible module to install packages using a custom
package management system. I want it to function like the core yum module
says it does when used in a loop, i.e. "Instead of calling the module with
a single package each time through the loop, ansible calls the
Thank you for the response!
For separate reasons, I ended up changing this to a local_action and then
the issue never resurfaced. Still unsure why...and I've been monitoring it
for awhile now. If the error reproduces I'll post the output and other info.
Thanks for the help!
On Monday, November
Hello - Apologies for the late reply. I failed to see the update before.
Thanks for the suggestion. I ended up defining this as a fact early on in
my playbook.
As for your question on roles, I do agree with you. I already redesigned
the role setup to make more sense. Thanks!
On Wednesday, Nove
My guess is that it is probably cause it is running 'python' and not
'python2', you can try running the setup module which includes the python
executable information.
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To
Hi,
Can any one please let me know why to use "-sudo" flag in ansible-playbook
command line.
ansible-playbook-sudo -i /opt/*/*/ansible/inventories/dev/hosts
/opt/*/*/ansible/playbooks/new_deployments.yml --extra-vars
"artifact_url=https://*.war hosts=test1 app_name=welcome"
Thanks
--
Y
I've run into some issues using nxos_reboot module in 2.2.0.0. Given a
very simple playbook:
---
- name: Reboot TOR B
hosts: test_b
gather_facts: no
connection: local
vars:
ansible_python_interpreter: /glide/bin/python27
cli:
host: "{{ inventory_hostname }}"
tasks:
-
33 matches
Mail list logo