: ansible_distribution_major_version == '6'
- include: base_centos7.yml
when: ansible_distribution_major_version == '7'
On Thursday, February 23, 2017 at 1:02:48 PM UTC-8, Steven Truong wrote:
>
> Thanks. Brian
>
> On Thursday, February 23, 2017 at 11:54:15 AM U
Thanks. Brian
On Thursday, February 23, 2017 at 11:54:15 AM UTC-8, Brian Coca wrote:
>
> it does evaluate variables lazily, the problem is that play includes
> run at compile time, so the variable is needed before the fact
> gathering happens.
>
>
> --
> Brian Coca
>
--
You rec
7'
I got a different error:
ERROR! Invalid role definition: None
On Thursday, February 23, 2017 at 11:39:31 AM UTC-8, Steven Truong wrote:
>
> Hi all,
>
> These are what I am trying:
>
> base-ng.yml:
> ---
> - name: Gathering the local facts from tags
> hosts
Hi all,
These are what I am trying:
base-ng.yml:
---
- name: Gathering the local facts from tags
hosts: all
gather_facts: yes
roles:
- facts
- include: "base_centos{{ ansible_distribution_major_version }}.yml"
-
base_centos7.yml:
---
- hosts: all
gather_facts: no
roles
I did try to reduce the size of Ansible and it is not worth it. I could
only reduce around 4 MBs off the total size of the container.
On Monday, November 7, 2016 at 5:18:34 PM UTC-8, Steven Truong wrote:
>
> Hi all,
>
> Am I being too picky here or just being naive in the ways I
onday, November 7, 2016 at 5:20:02 PM UTC-8, Greg DeKoenigsberg wrote:
>
> You might want to take a look at Ansible Container:
>
> https://github.com/ansible/ansible-container
>
> On Mon, Nov 7, 2016 at 8:18 PM, Steven Truong > wrote:
> > Hi all,
> >
> > Am I
Hi all,
Am I being too picky here or just being naive in the ways I approach my
works with Docker? There are times when I build a Docker image and then
when I run the container with some environment variables then my
start/entry point scripts still have to replace some config files some
where
Hi all,
I have a situation where I have to resort to using the shell instead of yum
module:
[root@qa-s1-sm1 ansible]# ansible localhost -c local -m yum -a
"name=myrpm-db1.5.1 state=latest enablerepo=repo-Snapshots disablerepo=*"
localhost | success >> {
"changed": false,
"msg": "",
Hi all,
I am using Ansible 1.9.2 and when I was in
/usr/local/lib/python2.7/dist-packages/ansible/modules/core/cloud/amazon
and grep for region or ec2_url I did not see any real mention of either
these in the codes.
grep 'ec2_url\|region' ec2_group.py
region:
- the EC2 region to use
gt; you can use as reference.
> >
> > On Mon, Jun 8, 2015 at 5:43 PM, Steven Truong > wrote:
> >> Hi Brian,
> >>
> >> Please excuse me if I am wrong but the problem with using the same
> ordering
> >> and role name in plays is that u
> in a role a play or an include).
>
> On Mon, Jun 8, 2015 at 5:11 PM, Steven Truong > wrote:
> > The problem here is that role1 is the first role for play #2 and play #3
> but
> > I want to start with play #3 and I do not want to edit or comment my
> > playboo
The problem here is that role1 is the first role for play #2 and play #3
but I want to start with play #3 and I do not want to edit or comment my
playbook.
On Monday, June 8, 2015 at 2:05:58 PM UTC-7, Brian Coca wrote:
>
> We already have something, not play, but task based --start-at-task,
>
Hi all,
Please excuse for my ignorance if there is a clean way to do the following:
hosts
[sm]
host1
[sw]
host2
myplaybook.yml
---
- hosts: all
roles:
- common
- hosts: sm
roles:
- role1
- role2
- hosts: sw
roles:
- role1
- role3
Assume that I ca
Note: these tasks are in the same role.
On Thursday, May 28, 2015 at 6:05:35 PM UTC-7, Steven Truong wrote:
>
> Hi Matt,
>
> Here are some tasks that call the same notify and it happened that these
> files might got changed during the same run.
>
> - name: creates ha
situation.
Thank you very much,
Steven.
On Thursday, May 28, 2015 at 5:10:03 PM UTC-7, Matt Martz wrote:
>
> I think you are going to need to show an example of the playbook/role and
> the output of this happening.
>
> On Thursday, May 28, 2015, Steven Truong >
> wrote:
>
>
Hi all,
I am using ansible 1.9.1 and in the same role I have a couple of notify to
the same service to be restarted.
Apparently, ansible tries to restart 3-4 times for each notify and that is
undesirable.
I could do without notify and create register for each task and then at the
end I can
Thanks for the tips. I tried this and this worked but to only some
extents.
What do I meant by that and here are the steps that you can repeat to see
the potential issue of this ec2_group module.
1. I started out with a vars yml file that has about 9 different IP
addresses/32
---
aws_vpc_i
Hi all,
Here is the situation that I am not sure how to deal with it.
shell: echo {{ ec2_tag_Name | regex_replace('(^[a-z]+-[a-z0-9]+).*',
'\\1') }}
And certainly, I have other shell command where I echo something and use
register to capture the output such as the following:
- name: get pub
Hi all,
I am a fan of Ansible and I just do not see the validity in his complaints.
http://thefsb.tumblr.com/post/94644144890/ansible-reminds-me-of-phps-salad-days
RTM and follow the best practices and you should be fine. I have used
Ansible for almost 3 years and thanks God I do not miss Pupp
.
On Tuesday, October 7, 2014 11:55:12 AM UTC-7, Steven Truong wrote:
>
> Hi,
>
> I have a mixed or Amazon Linux and CentOS 6.5 on AWS but I just recently
> have had this problem. Running the "setup" scripts directly worked but
> Ansible gathering facts just hu
O-SUCCESS-jqiqepwwyueomscsvvidoflkvqfxpkff;
LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python
/home/adsymp/.ansible/tmp/ansible-tmp-1412960308.87-49429622058592/command;
rm -rf /home/user/.ansible/tmp/ansible-tmp-1412960308.87-49429622058592/
>/dev/null 2>&1'
root 17783
ing is going on and
> see what may be hung that way? My bet is it could be something
> mount-related.
>
> On Tue, Oct 7, 2014 at 1:55 PM, Steven Truong > wrote:
>
>> Hi,
>>
>> I have a mixed or Amazon Linux and CentOS 6.5 on AWS but I just recently
>&g
Hi,
I have a mixed or Amazon Linux and CentOS 6.5 on AWS but I just recently
have had this problem. Running the "setup" scripts directly worked but
Ansible gathering facts just hung.
# pwd
/home/adsymp/.ansible
# su root -c /bin/sh -c 'echo
SUDO-SUCCESS-dhyqcckwxzuthyzxqniggbjvfxvuewha; LAN
A new interesting development. I remove aws_access_key and aws_secret_key
from the task ec2_elb and create ~/.boto and tried again. This type things
work.
[Credentials]
aws_access_key_id=...
aws_secret_access_key=...
Hmmm
On Tuesday, September 9, 2014 1:37:11 PM UTC-7, Steven Truong
Hi all,
I have a play book that just simply go and add instances to my ELB but
apparently the user's keys specified were not authorized to do the
"DescribeLoadBalancers". This user has a policy attached to it that allows
to have full access to this ELB.
Task:
- name: Instance re-register
uestion is not relevant).
>
>
>
>
> On Mon, Sep 8, 2014 at 8:35 PM, Steven Truong > wrote:
>
>> Hi all,
>>
>> The subject is misleading but I would like to get some helps on how to
>> troubleshoot this or figure out what can be done.
>>
>> I
Hi all,
The subject is misleading but I would like to get some helps on how to
troubleshoot this or figure out what can be done.
I have about 70 instances with tag kafkaproducer=yes and I want to do
rolling updates to them but my playbook went nowhere with ec2_facts.
I ran the module ec2_fac
Hi all,
I have this task:
- name: wait for http port 80 return ok for 1 minutes
shell: /usr/local/bin/check_health /health 80 {{ inventory_hostname }}
delegate_to: "{{ item }}"
with_items: groups.sc2_docker_lb
register: output
until: output.stdout.find("Ready to go") != -1
On Tuesday, August 26, 2014 12:16:30 PM UTC-7, James Cammarata wrote:
>
> If you remove the variables and hard-code the paths, does it work for you
> then? I'm curious if things like spaces/newlines in the stdout variables
> you're using are causing the problem.
>
>
Hi all,
I tried to use the volumes option and nothing seems to work for me.
I want to mount 2 directories ~/dockerstorage/model and ~/repo/ops/ansible
to the container and I used either of these commands and nothing worked.
docker: image=registry.my.com:5000/steven/centos65_prod_ready:v1
do
aps it's a pair of Galaxy roles?
>
>
>
>
> On Mon, Feb 3, 2014 at 6:27 PM, Steven Truong wrote:
>
>> Hi all,
>>
>> Included is a link to a talk that described using Fabric and bittorrent.
>> If we could have this feature, Ansible will rule the worl
Hi all,
Included is a link to a talk that described using Fabric and bittorrent.
If we could have this feature, Ansible will rule the world.
http://in.pycon.org/2010/talks/63-deployment-to-large-server-farms-using-fabric-and-bittorrent.
Cheers,
Steven.
--
You received this message because y
Hi all,
I have around 120 hosts to push out this much of data in two directories:
* du -hs bin conf/*
*308K bin*
*16K conf/*
The strange thing is that this take a long long time and it even stucked
and then "At times" might even complained that rsync was not found. I
installed rsync on both en
27;: True}
fatal: [iad2-lb4] => {'msg': "One or more undefined variables: 'dict'
object has no attribute 'ansible_eth0'", 'failed': True}
fatal: [iad2-lb2] => {'msg': "One or more undefined variables: 'dict'
object has no attribute
Hi all,
Using the info from the document, I tried this but this totally does not
work. I tried a few different varibles such as ansible_ipv4 and nothing
seemed to work.
{% for host in groups['iad2-ads'] %}
server {{ inventory_hostname }} {{
hostvars[host]['ansible_all_ipv4_address'] }}:80
Hi all,
Please forgive my ignorance if somebody already asked this and there are
already places somewhere that can help me with my issues.
1. I would love to know all the things that I can do in templates like the
for loops "for host in groups_names" and the likes.
2. Please separate the docs
Hi all,
http://www.infoworld.com/d/data-center/review-puppet-vs-chef-vs-ansible-vs-salt-231308
I came away feeling sick in my stomach. This was written by a tech writer
and I just simply think that he does not know what he wrote about.
By the way, Ansible rocks.
Cheers.
--
You received this
37 matches
Mail list logo