I know rhel4 is not supported, but I do not have choice.
Installed python27 in /opt and trying to get the playbook running.
I am using the ansible_python_interpreter /opt/python2.7/bin/python2.7
Just regular ansible x -a "date" command works fine.
But, when I try using the playbook, it causes
d tweak it for your use case. There are two
> variations, one that makes one giant JSON file or one to make one json file
> per host.
>
> Credit to James Martin for helping me out with this a while back.
>
>
> On Sunday, November 9, 2014 1:28:23 AM UTC-5, Darup tek wrote:
And regular: ansible-playbook command works fine when the playbook is
pointed.
--
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...@go
I am using the below function for the past 4 months to orchestrate the
installations/depolyments and it was quick.
It was working fine and all of a sudden, it became dead slow. I do not
remember tweaking settings.
def run_playbook(listVMs, playbook, user, extra_vars=None, key_file=None):
pr
I managed it using the ansible.runner
Is it the right way to do it ??
On Saturday, November 8, 2014 9:34:40 PM UTC-8, Darup tek wrote:
>
> I am trying to gather information about some 200 servers using the setup
> command.
> I would like to get the output as one json data. I could
I am trying to gather information about some 200 servers using the setup
command.
I would like to get the output as one json data. I could see 200 json
outputs.
How do I get all the date into one json file with 200 servers information.
Appreciate the help.
--
You received this message because
ally provide a lot of debugging help beyond the above.
>
> We do support the REST API in Tower to a much greater extent, though I'd
> possibly suggest looking through /usr/bin/ansible and ansible-playbook and
> seeing how they construct things, with an expectation this is related t
t;
>
> On Sun, Aug 31, 2014 at 2:42 AM, Darup tek wrote:
>
>> Thanks, I solved the problem by using extra-vars.
>>
>>
>> On Saturday, August 30, 2014 12:05:18 PM UTC-7, Henry Finucane wrote:
>>
>>> I'm not 100% sure if I understand the question, bu
I swapped copy module to synchronize and it worked like charm.
But , it is still puzzling me why copy module behaves differently in those
2 scenarios.
>
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and st
I am using the following snippet to execute the playbook, this is the only
way I can solve the deployment of servers for the first time as the
inventory is not present at that time and lot of orchestration is needed to
deploy the cluster with several nodes.
def run_playbook(listVMs, playbook, u
ntation is fairly reasonable:
> http://docs.ansible.com/intro_inventory.html (group_vars are what you
> want, and are discussed at the end)
>
> As an aside, the Ansible convention for global defaults is the "all"
> group.
>
> On Fri, Aug 29, 2014 at 11:43 PM, Dar
of your template file would
> be:
>
> export HOST_NAME*={{ ansible_hostname }}*
>
> You can read more about facts at
> http://docs.ansible.com/playbooks_variables.html#information-discovered-from-systems-facts
> .
>
> Hope that helps.
>
> Michael
>
> O
I have this playbook which changes the xml file on a remote server.
This playbook needs to read a value from another yaml file.
For example source yaml file:
main.yml
cluster: onecluster
product: someproduct
playbook.yml
-replace: dest=/a/b/cd.xml regexp=something replace=<<< value of *clus
>
> currently,I am solving this problem making it as a script and using
>
- script: script_change_bash_profile.sh
Is there a better way than this.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop r
I am little clueless on how to solve this issue.
There are couple of hosts I need to remotely change the .bash_profile.
Locally I run the command this way.
echo ""# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment
ipv4.tcp_keepalive_probes = 4'
> notify: Reload sysctl
> handlers:
> - name: Reload sysctl.conf
> shell: sysctl -p
>
>
> 2014年8月29日金曜日 3時25分15秒 UTC+9 David Karban:
>
>> Hí Darup,
>>
>> i believe that Brian thougth sysctl module:
>
I am currently doing this, want a better one :)
- name: Changes to sysctl.conf
lineinfile:
dest=/tmp/1
regexp="{{ item.regexp }}"
line="{{ item.line }}"
with_items:
- { regexp: '^net.ipv6.conf.all.disable_ipv6', line:
'net.ipv6.conf.all.disable_ipv6 = 1' }
- { r
I would like to add these lines to a file at the end sysctl.conf
net.ipv6.conf.all.disable_ipv6=1
net.ipv4.tcp_no_metrics_save = 1
net.ipv4.tcp_moderate_rcvbuf = 1
net.ipv4.tcp_fin_timeout = 15
net.ipv4.tcp_keepalive_time = 1800
net.ipv4.tcp_keepalive_probes = 4
I am adding these using seve
mmands one after the other after from one section ?
On Wednesday, August 13, 2014 3:17:44 PM UTC-7, Darup tek wrote:
>
> I am trying to execute the commands over playbook.
>
> - name: Configure open-pbis
> action: command /opt/pbis/bin/config LoginShellTemplate /bin/bash
>
I am trying to execute the commands over playbook.
- name: Configure open-pbis
action: command /opt/pbis/bin/config LoginShellTemplate /bin/bash
action: command /opt/pbis/bin/config AssumeDefaultDomain true
It is not setting the bash environment when I execute it with
anisble-playbook
20 matches
Mail list logo