in the template
>
> server {{ ntp_server }} iburst
>
> I find it better to limit conditionals(when) and better to rely on
> different groups_vars or different inventories(/group_vars). It make it
> much more readable and enables your code to be more flexible, re-usable.
>
> On
Hi,
I have created a role for the ntp with the ntp.j2 and ntp1.j2 templates in
templates diretory .
with ntp.j2 consisting of
server 2.2.2.1 iburst
and with tp.
ntp1.j2 consist of
server 1.2.1.3 iburst
In the task under the
- name:
template:
src: ntp.conf.j2
dest:
thank you guys..
On Sun, Sep 30, 2018 at 11:29 PM Kai Stian Olstad <
ansible-project+l...@olstad.com> wrote:
> On Sunday, 30 September 2018 19.46.12 CEST coach rhca wrote:
> > I am trying to create a role in which i have variable file ( main.yml)
> > under v
Hi,
I am trying to create a role in which i have variable file ( main.yml)
under vars folder containing
---
group1:
cid: t1234
env: uat
status: active
and in the tasks (main.yml ) i have
---
- name: setting values
set_fact:
cid: "{{item.cid}}"
env : "{{item.env}}"
Hi,
Could you please help .. am unable to retrieve the public ip address of the
ec2 instance to add it to the host inventory..
- name: Create an ec2 instance
ec2:
key_name: "{{ keypair }}"
group: sg_webserver_group
instance_type: "{{ instance_type}}"
c2 module.
>
> Cheers,
> Felix
>
>
>
> On Mon, 20 Aug 2018 21:24:16 +0530
> coach rhca wrote:
>
> > any valuable inputs from you experts ..not sure if calling it the
> > right way after register the variable..
> >
> > On Mon, Aug 20, 2018 at 10:47 AM
any valuable inputs from you experts ..not sure if calling it the right
way after register the variable..
On Mon, Aug 20, 2018 at 10:47 AM, coach rhca wrote:
> Could you please help .. am unable to retrieve the public ip address of
> the ec2 instance to add it to the host inv
2 *gives
all the details)
- name: Add the newly created host
add_host:
name: "{{ item.public_ip }}"
groups: webserver
with_items: "{{ ec2.instances }}"
Thank you
On Sun, Aug 19, 2018 at 12:41 PM, coach rhca wrote:
> thanks kai..
>
> On
docs.ansible.com/ansible/latest/modules/
> openssl_certificate_module.html)
>
> Please check out the documentation, it also contains example on how to
> use the modules.
>
> Cheers,
> Felix
>
>
>
>
> On Sat, 18 Aug 2018 13:44:59 +0200
> Kai Stian Olstad wrote:
>
&g
thanks kai..
On Sat, Aug 18, 2018 at 5:14 PM, Kai Stian Olstad <
ansible-project+l...@olstad.com> wrote:
> On Friday, 17 August 2018 06.11.03 CEST coach rhca wrote:
> > thanks Jonathan for reciprocating, i use the openssl on the OS to
> generate
> > the pem file and th
Could you please suggest with your expert advise.
On Fri, Aug 17, 2018 at 9:41 AM, coach rhca wrote:
> thanks Jonathan for reciprocating, i use the openssl on the OS to generate
> the pem file and then the crt file but i am checking on how to achieve this
> on ansible.
> just li
e using. You can also
> template the config file.
>
> On Thu, Aug 16, 2018 at 1:15 PM coach rhca wrote:
>
>> Hi,
>>
>> Trying to create an ec2 instance using ansible. which will host a normal
>> webserver but not sure on how to add the self signed certific
Hi,
Trying to create an ec2 instance using ansible. which will host a normal
webserver but not sure on how to add the self signed certificate to the
http - webserver using ansible.
Also how to redirect all the http request to https one using ansible. Could
you please suggest. thank you.
--
; to-embed-in-yaml
>
> kind regards
> Pshem
>
>
> On Mon, 6 Aug 2018 at 16:02 coach rhca wrote:
>
>> Hi,
>>
>> can we encrypt a string (password) using ansible vault. I have a file
>> which contains the usernames and passwords.
>> Could we encryp
Hi,
can we encrypt a string (password) using ansible vault. I have a file which
contains the usernames and passwords.
Could we encrypt the username and password inside the file rather then
encrypting the file with ansible-vault encrypt. if yes, then how do we go
about calling those encrypted
Any idea or thought/insight on how to run osgi command from the jboss
console using ansible...
osgi:uninstall jnt-agency-database-info
features: refreshurl
osgi install
osgi: start jnt-agency-database-info
On Fri, Dec 29, 2017 at 11:55 AM, wrote:
> trying to automate few
trying to automate few of the step in ansible for jboss ..but not sure if
this can be achieved in ansible...
like running ./client -h localhost from the prompt takes it to the jboss
console...and running few more command from the jboss console..
Can we run the command in jboss console using the
any thoughts on this...
On Fri, Dec 22, 2017 at 12:23 PM, coach rhca <coach.r...@gmail.com> wrote:
> Kai/Brian, could you please help on it...as above the files are
> variable1.yml, variable2.yml,variable3.ymlhaving the values as
> ptr_image: my.example.com/jobname/testname
&g
on...( one
variable file values to be export and subsequent ones)
thanks
On Thu, Dec 21, 2017 at 9:15 AM, coach rhca <coach.r...@gmail.com> wrote:
> sorry for coming back to this again...if we have multiple vars file will
> the logic be the samefor example ..
>
thanks Kai, i will check this one...thanks a bunch
On Wed, Dec 20, 2017 at 8:24 PM, Kai Stian Olstad <
ansible-project+l...@olstad.com> wrote:
> On Wednesday, 20 December 2017 12.56.59 CET coach.r...@gmail.com wrote:
> > I am trying to create multiple different directory structure using the
> >
I am trying to create multiple different directory structure using the
with_items and again i need to refer the same directory structure in the
other plays in the playbook.
for example
- file: name=/jenkins/data/{{item.dir1}}/{{item.dir2}}
with_items:
- {dir1: str-build, dir2:
Thanks a ton Brian for the help...
On Thu, Dec 14, 2017 at 11:50 PM, Brian Coca wrote:
> - name: to execute the build
> tasks:
> - name: exporting the variables
> include_vars:
> file: variable.yml
> name: myenvvars
>
> - name: running the docker
thanks again kai and appreciate your help...will check it...
On Thu, Dec 14, 2017 at 10:34 PM, Kai Stian Olstad <
ansible-project+l...@olstad.com> wrote:
> On Thursday, 14 December 2017 17.58.03 CET coach rhca wrote:
> >
> > Thanks Kai for clarifying it...so p
t+l...@olstad.com> wrote:
> On Thursday, 14 December 2017 16.35.10 CET coach rhca wrote:
> >
> > thanks Kai, if the include_vars will not export , i have tried the
> > environment module too... the variable file is dynamic and every time it
> > changes the
with the exported variables..when using
environment module..please share your insight ...thanks
On Thu, Dec 14, 2017 at 8:28 PM, Kai Stian Olstad <
ansible-project+l...@olstad.com> wrote:
> On Thursday, 14 December 2017 14.07.22 CET coach rhca wrote:
> >
> > any thoughts or
any thoughts or approach in this regard.
On Thu, Dec 14, 2017 at 12:13 PM, wrote:
> I have few variables defined in a variable.yml file for example
>
> cat variable.com ( its a dynamic file and the value keeps changing )
> ptr_image: my.example.com/jobname/testname
>
I have few variables defined in a variable.yml file for example
cat variable.com ( its a dynamic file and the value keeps changing )
ptr_image: my.example.com/jobname/testname
ver_number: v99
I am using this in my playbook ... build.yml
where i am using this file for the variables..
---
-
Thanks Kai for the help always..will check on this ...
On Tue, Dec 12, 2017 at 11:04 PM, Kai Stian Olstad <
ansible-project+l...@olstad.com> wrote:
> On Tuesday, 12 December 2017 07.28.53 CET coach.r...@gmail.com wrote:
> > Hi,
> >
> > Trying to read the values from flat files and to use it as a
i am trying to use the shell: cat testfile |sed 's/\//\n/g' and got the
values in column wise ,could you please help as how i can get this values
individually using register.
On Tue, Dec 12, 2017 at 12:00 PM, coach rhca <coach.r...@gmail.com> wrote:
> just to add the flatfile is on
just to add the flatfile is on a remote machine...
On Tue, Dec 12, 2017 at 11:58 AM, wrote:
> Hi,
>
> Trying to read the values from flat files and to use it as a variables in
> the ansible playbook , for example
>
> the flatfile is
> #cat output
>
>
Hi,
Trying to read the values from flat files and to use it as a variables in
the ansible playbook , for example
the flatfile is
#cat output
example.com/development/testcaseone:v99
I want to use above values as a variables in the playbook , just like
---
- hosts:
vars:
rt1:
also anytime if need to run the clone multiple times then can we use the
force command ..to get the updated repo
On Sat, Dec 9, 2017 at 11:36 PM, coach rhca <coach.r...@gmail.com> wrote:
> thanks again Kai for that insight..
>
>
>
> On Sat, Dec 9, 2017 at 11:02
thanks again Kai for that insight..
On Sat, Dec 9, 2017 at 11:02 PM, Kai Stian Olstad <
ansible-project+l...@olstad.com> wrote:
> On Saturday, 9 December 2017 18.20.07 CET coach rhca wrote:
> >
> > Thanks for replying Kai, if i understand you correctly , git module i
Thanks for replying Kai, if i understand you correctly , git module in
anisble doesnot create the parent directory for example if the playbook has
the below git play
git: repo= git: repo=https://github.com/drush-ops/drush.git
dest=/data/gitfiles clone=yes ==> it will not create a drush directory
I am trying to clone a git repository using the git clone command but it is
unable to create the directory structure and copies the entire files in the
parent directory.
example when i do the
- git: repo=http://pathtothegit/container.git dest=/data/config
recursive=yes > it only copies
Ansible init is not creating the file and template directory. Trying to run
the below command to create vsftp role locally but it is not creating the
complete directory structure.
$ansible-galaxy init --offline vsftp
Is there any other option to mention here to get the files and template
Also want to know , here we are using the result.files , what are the other
options we can use..could you please suggest any link where we can get more
info about the options available we can use just like results.files
On Thu, Nov 30, 2017 at 5:54 PM, coach rhca <coach.r...@gmail.com>
Thanks Kai for the help.appreciate it
On Wed, Nov 29, 2017 at 8:14 PM, Kai Stian Olstad <
ansible-project+l...@olstad.com> wrote:
> On Wednesday, 29 November 2017 15.35.03 CET coach rhca wrote:
> >
> > Thanks Kai, I did the same as suggested by you to find the ifcfg-* but
"mtime": 1511852951.9169016,
"nlink": 1,
"path":
"/etc/sysconfig/network-scripts/ifcfg-Ethernet_connection_1",
"rgrp": true,
"roth": true,
"rusr&q
thanks Kai, actually trying to edit a parameter in the network interface
files I am using something like
lineinfile: "dest=/etc/sysconfig/network-scripts/*ifcfg-{{
ansible_default_ipv4.interface }*} regexp='^{{ item.regexp }}' line='{{
item.line }}'"
but this only gives me the default network
IS there is a way that we can get the name of all network interfaces as we
have ansible_default_ipv4.interface gives only the primary one . Need to
get all the interface name so that a parameter can be modified for it.
--
You received this message because you are subscribed to the Google
> wrote:
> On 08.11.2017 07:20, coach rhca wrote:
>
>> Thanks Kai for that insight , i have taken out the port=22 and include the
>> timeout=600 option in wait_for module in order to check the services by
>> login to server. Also can we set different timeout values for different
>
olstad.com> wrote:
> On 07. nov. 2017 18:22, coach rhca wrote:
> > Thanks Kai , looking for something like the server is rebooted and looks
> > for the processes or service and then move to the next server reboots and
> > check the service and goes to the next hosts and doe
Thanks Kai , looking for something like the server is rebooted and looks
for the processes or service and then move to the next server reboots and
check the service and goes to the next hosts and does the same.
On Mon, Nov 6, 2017 at 8:51 PM, Kai Stian Olstad <
ansible-project+l...@olstad.com>
into it..
On Sat, Oct 21, 2017 at 1:52 PM, Kai Stian Olstad <
ansible-project+l...@olstad.com> wrote:
> On 21. okt. 2017 07:35, coach rhca wrote:
> > `Thank you for help...I was able to figure out...
>
> In open source community it's custom to share the answer you find, we ar
`Thank you for help...I was able to figure out...
On Sat, Oct 21, 2017 at 9:45 AM, wrote:
>
>
> On Thursday, October 19, 2017 at 1:39:45 PM UTC+5:30, mcso...@redhat.com
> wrote:
>>
>> This looks like you are trying to create overlapping partitions. I have
>> not tried it,
46 matches
Mail list logo