I believe the problem here is indentation.
- hosts: node02
vars:
ORACLE_BASE: /u01/oracle/product
ORACLE_HOME: /u01/oracle/product/11.2.0
remote_user: oracle
sudo_user: root
sudo: false
gather_facts: true
tasks:
-AliJ
On Sun, Nov 13, 2016 at 9:28 PM, Shaikh Abdul
Hi all,
I am trying to do
- name: Check if package-1 is installed
command: dpkg-query -l package-1
register: deb_check
ignore_errors: yes
- name: Check that package-1 designated ports are free
wait_for: port={{ item }} state=absent timeout=10
with_items:
Vikram,
I believe ansible_default_ipv4 is not fetched by ansible in the first go.
Try removing the facts of the respective host and running again. Make sure
you are gathering the facts first.
-AliJ
On Sat, Nov 19, 2016 at 10:50 PM, Vikram Ranabhatt <
vikramranabh...@gmail.com> wrote:
> TASK
Hi Vikram,
Kai is right, now that you have shared your code. You are trying to display
default_ipv4_address of all the hosts. Since the hosts are unreachable,
Ansible is unable to gather facts, hence it cannot find
default_ipv4_address of all the hosts and verily cannot display them. Try
to
What error does the playbook throw?
On Sat, Nov 19, 2016 at 9:22 PM, Vikram Ranabhatt wrote:
> I setting up kubernetes cluster with 3 master and 5 node.I am deploying
> through ansible.
>
> I am able to create these node.
>
>
> I am using ansible 2.2.0.0. on host
Hi there,
Try doing,
- name: Set fact
set_fact:
my_date_as_fact: my_date
Thanks
-AliJ
On Thu, Dec 1, 2016 at 2:17 PM, wrote:
> For example:
>
> - name: Get date
> command curl http://some-url
> register: my_date
>
>
> - name: Set fact
> set_fact:
>