On 02.06.16 23:04 John.1209 wrote:
> I don't know what I need to do to replace the
> HOSTNAME=inventory_hostname_short with HOSTNAME=inventory_hostname. I
> basically want to replace the HOSTNAME statement with the FQDN.
I would use the lineinfile module. A rough draft (untested) without
corr
On 03.06.16 08:01 ishan jain wrote:
> I am trying to add a key-value to %PATH% variable in windows and for that i
> am using a raw module. But when i use something like:
>
> PATH=E:\jre;%PATH%
I have no clue how this is for windows hosts, but normally I escape
things with a \ in ansible...
Joh
I am trying to add a key-value to %PATH% variable in windows and for that i
am using a raw module. But when i use something like:
PATH=E:\jre;%PATH%
then i get error saying,
"%PATH% : The term '%PATH%' is not recognized as the name of a cmdlet
I tried putting things in quote and there are no
Thanks Jason. But I am using RHEL 6.7. Will it work there?
--
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 po
I've created a playbook that will work with RHEL7, try it out and let me know
how it goes.
> On May 26, 2016, at 10:56, Dibyendu Paul wrote:
>
> Hi Jason
> It would be great if you could create an ansible playbook for this. Because I
> might not able to use docker in the real lab. I'll wait u
there is a problem to this
if my hostvars declared esx_host and under that the host is lets say
10.16.1.3 then self.play.hosts gives esx_host and not 10.16.1.3
runner_on_ok gets the right host as a parameter
So back to finding a good way ! I am using ansible 1.0 and alos using the
adap
Im new to ansible .Getting connection refused error while doing ping to
windows client machines. Could any one help me where i am doing wrong.
ansible server OS version: REDHAT 6.7
client os: windows 2012 R2
client firewall status: disabled
Im able to do ping /telnet to client machine from serv
I'm trying to write an Ansible script that will replace the network line in
/etc/sysconfig/network file if the FQDN is not specified and if the gateway
is (say) 10.10.10.1.
So this is what I have so far:
---
- name: Update Network
when: ("inventory_hostname == inventory_hostname_short" an
On Thursday, June 2, 2016 at 2:02:41 PM UTC-5, Johannes Kastl wrote:
>
> Hi there,
>
> On 02.06.16 17:35 Tom Hanson wrote:
>
> > I am fairly new working with ansible and am operating some playbooks
> that
> > were built by someone else who is gone. The current playbooks will set
> up a
> >
On 02. juni 2016 19:15, Brian Coca wrote:
try this:
ansible-playbook -i hosts site.yml --user admin --ask-pass --become
You also need to add --ask-become-pass
--
Kai Stian Olstad
--
You received this message because you are subscribed to the Google Groups "Ansible
Project" group.
To unsubscr
Dear all,
I sometimes see files being reported as changed, although the contents
(apart from the ansible_managed) have not changed. The permissions are
the same.
I thought that in these cases, where only the ansible_managed line has
changed, the file would stay the same. I get this behaviour a lo
Dear all,
how to check the result of a lineinfile task?
I got one that outputs the following:
> "backup": "",
> "changed": true,
> "diff": [
> {
> "after": "",
> "after_header": "/path/to/file (content)",
> "
On 02.06.16 20:39 Trond Hindenes wrote:
> is "S:" a local or mapped drive?
>
How should I know, it's your machine... ;-)
Just try and log into the machine, copy the file from S:\... to
somewhere on C: (where your user has the rights) and then try to run
your playbook with this path...
Johannes
-
Hi there,
On 02.06.16 17:35 Tom Hanson wrote:
> I am fairly new working with ansible and am operating some playbooks that
> were built by someone else who is gone. The current playbooks will set up a
> new server and work fine. It installs several standard packages and will
> change to all SSH
Yes, they are the same. Is that a problem? I could make a new account
local or domain.
On Wednesday, June 1, 2016 at 5:40:48 PM UTC-5, skinnedknuckles wrote:
>
> Control Node:
>
>- CentOS 7
>- Ansible 2.1
>- pywinrm version from May 19th, 2016
>
> Remote Node:
>
>- Windows 7
>
is "S:" a local or mapped drive?
On Wednesday, June 1, 2016 at 7:19:28 PM UTC+2, Johannes Kastl wrote:
>
> On 31.05.16 22:54 aaron.truji...@total.care wrote:
>
> > Basically i have a file on a local shared drive that I want to install
> on
> > my windows machines.
>
> I think I remember readin
Is both your user and your computer named "ADS-6999"?
On Thursday, June 2, 2016 at 12:40:48 AM UTC+2, skinnedknuckles wrote:
>
> Control Node:
>
>- CentOS 7
>- Ansible 2.1
>- pywinrm version from May 19th, 2016
>
> Remote Node:
>
>- Windows 7
>- Powershell 3
>
>
> I'm having tr
using ansible 2.1
--
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 to this group, send email to ansible-p
using the elasticache_subnet_group module and trying to populate the list
of subnet ids using a variable but its only populating one of the ids.
Here's the task:
- name: create elasticache subnet group
elasticache_subnet_group:
state: present
name: "{{ Env }}-{{ nameCache }}"
On 02.06.16 18:54 Brian Coca wrote:
> modules don't read args, ansible does, then passes them to the module,
> since the shell module is 'free form' there is really nothing to validate
> against, since what you are passing can work in a shell .. there is no
> error thrown either.
I'll reword my th
The mail command can invoke /usr/bin/sendmail directly and queue w/o having
an MTA listening on port 25. The mail module needs a network accessible MTA
(mail transfer agent, the software that actually accepts and delivers
email).
--
Brian Coca
--
You received this message because you are
try this:
ansible-playbook -i hosts site.yml --user admin --ask-pass --become
`--become-user admin` is basically telling ansible to login as admin and
then use sudo to become admin, which is basically useless. With the command
above it will become 'root', the default.
--
Brian Coca
--
Y
Ansible 2.1
Ansible host: Ubuntu 16.04
Remote host: CentOS 6.5
I have a simple ansible project:
├── hosts
├── roles
│ └── setup
│ ├── defaults
│ │ └── main.yml
│ ├── tasks
│ │ └── main.yml
│ └── templates
│ └── automation-agent.config.j2
└── site.y
What is the syntax for the third element that can be used with_subelements
to use to skip missing subelements?
"Optionally, you can add a third element to the subelements list, that
holds a dictionary of flags. Currently you can add the ‘skip_missing’ flag.
If set to True, the lookup plugin wil
modules don't read args, ansible does, then passes them to the module,
since the shell module is 'free form' there is really nothing to validate
against, since what you are passing can work in a shell .. there is no
error thrown either.
--
Brian Coca
--
You received this message because
If it breaks, you get to keep both halves :)
(But seriously, thanks for trying it out, please give us feedback)
On Jun 2, 2016 12:03 PM, "Clément VALENTIN" wrote:
> Good news !!
>
> I try since yesterday to plug ansible to my docker + container :p
> I try ansible-container tomorow :)
>
> Le jeud
Good news !!
I try since yesterday to plug ansible to my docker + container :p
I try ansible-container tomorow :)
Le jeudi 2 juin 2016 17:49:39 UTC+2, Greg DeKoenigsberg a écrit :
>
> Many thanks to Joshua Ginsberg and Chris Houseknecht of Ansible for
> starting this new project:
>
> https://gi
This sounds great!
On Thursday, June 2, 2016 at 11:49:43 AM UTC-4, Greg DeKoenigsberg wrote:
>
> Many thanks to Joshua Ginsberg and Chris Houseknecht of Ansible for
> starting this new project:
>
> https://github.com/ansible/ansible-container
>
> Still in its infancy, so please take it for a sp
Many thanks to Joshua Ginsberg and Chris Houseknecht of Ansible for
starting this new project:
https://github.com/ansible/ansible-container
Still in its infancy, so please take it for a spin and let us know how
it works for you. Patches and bug reports encouraged.
What does it do, exactly? Permi
I am fairly new working with ansible and am operating some playbooks that
were built by someone else who is gone. The current playbooks will set up a
new server and work fine. It installs several standard packages and will
change to all SSH logins , no root login. The first time I will put the
On 02.06.16 17:14 Joanna Delaporte wrote:
> I often have playbooks fail to install because my apt or yum cache is out
> of date. Can I use update_cache: yes in the package module, or do I need to
> go back to using apt module and yum module?
On a related note, would be nice if the update_cache_t
On 02.06.16 17:14 'Chris Short' via Ansible Project wrote:
> No error message. It just runs and runs and never fails.
I had that sometimes, then I killed the process on the target host,
and voilá I had some error message on the controller running the
ansible task (I run with -v, to get more outp
---
- name: Sync REDCap Prod Database to Val Environment
hosts: vml-rdcdb3
tasks:
- name: Remove any existing backup
file: path={{ bu_dir }}/redcap.sql.gz state=absent
tags:
- prod
- name: Create backup of production redcap database
mysql_db: name=redcap state
I often have playbooks fail to install because my apt or yum cache is out
of date. Can I use update_cache: yes in the package module, or do I need to
go back to using apt module and yum module?
Thanks!
Joanna
--
You received this message because you are subscribed to the Google Groups
"Ansibl
On 02.06.16 17:06 Johannes Kastl wrote:
> Can you use the full path to the mail executable in the local_action?
I guess not.
What happens when you test the following:
- hosts: localhost
become: no
tasks:
- mail: ...
This should send a mail via ansible from your localhost. If this
works
On 02.06.16 15:17 'Chris Short' via Ansible Project wrote:
> Out of curiosity I have a mysql_db play in a playbook that imports a
> database into a pre-production environment. I added single_transaction=yes
> to it and the import never fully finished. Not sure if this is a bug or
> some external
On 02.06.16 14:58 Colin MacKenzie, III wrote:
> I can send email fine from the command line like this:
>
> uuencode /Users/mackc/ansible/reports/areport areport | mail -s "Company
> Report" colin.macken...@company.com
I think you are using ansible's mail module as a local action, while
on the c
You CAN modify the script to be a module, but you don't NEED to, you can
also use the `script` module.
Adapting an existing script into a module is simple, mostly you just need
to allow for inputs and outputs to be JSON.
--
Brian Coca
--
You received this message because you are sub
I am running ansible on a macbook pro. when i use mail Mod like this...
- name: Send Emails
local_action: mail
subject="Company WFI Report -- Automated email"
body="This email is automated contact Colin Mackenzie
if you have problems"
Hello Friends,
I am a bit stuck in proceeding with ansible. I would like to be guided for
how Can I run a python script using Ansible.
As far as i understood we are supposed to make an ansible module and then
use it in playbook. But i dnt understand how to begin writing a module.
It will be rea
Out of curiosity I have a mysql_db play in a playbook that imports a
database into a pre-production environment. I added single_transaction=yes
to it and the import never fully finished. Not sure if this is a bug or
some external issue but since this is new functionality I'd be willing to
aid i
Went trough exact the same process (debugging, looking for a consistent
documentation and so on). I will try update you, on what solution did I
used, later on
Daniel Osielczak
PGP Key:4096R/3EC320D0
Fingerprint: 4268 54CD 50FF 5465 DFC3 EA59 4350 D3BC 3EC3 20D0
2016-06-02 0:59
On 31.05.16 21:23 Guy Knights wrote:
> I only started getting this recently after I started using ansible 2.1. The
> docker task in question hasn't been modified in a long time, and if I
> manually remove the container from the host and re-run the playbook, it
> starts the container ok.
How did y
Not sure about RedHat, but for CentOS 7 you may use the similar operations
$ git clone --recursive --branch v2.0.2.0-1 https://
github.com/ansible/ansible.git
$ cd ansible && make rpm
$ sudo rpm -ivh rpm-build/ansible*centos.noarch.rpm
Oops!
error: Failed dependencies:
python-httplib2 is needed
$ sudo yum install asciidoc make rpm-build
$ git clone --recursive --branch v2.0.2.0-1 https://
github.com/ansible/ansible.git
$ cd ansible && make rpm
$ sudo rpm -ivh rpm-build/ansible-2.0.2.0-0.git201604192124.24d9e5e.HEAD.el7
.centos.noarch.rpm
You will get broken dependensies
On Wednesday,
On 02.06.16 00:35 Brian Coca wrote:
> args won't give you an error in the case you showed as you passed a string
> to the shell module which allows for arbitrary strings (shell commands). To
> the shell that would have appeared as setting a variable inline or an extra
> parameter.
But I would hav
46 matches
Mail list logo