hi All,
I am installing a rpm file using ansible playbook , while installing I need
to pass few arguments as below
> yes/no
> hostname
>database name
> primary db
>password
can some one suggest me
my playbook file is as below
---
- hosts: all
become: yes
tasks:
- name: create an empty folders
- include: foldercreation.yml
- name: Copy rpm file to server
copy:
src: "{{ item }}"
dest: /home/msuresh6/ansible/rpmpackages/
with_fileglob:
- /home/msuresh6/ansible/rpmpackages/*
- name: install rpm files
shell: rpm -i -vh /home/msuresh6/ansible/rpmpackages/{{item}}
with_items:
- libpcap-1.4.0-4.20130826git2dbcaa1.el6.x86_64.rpm
- tcpdump-4.0.0-9.20090921gitdf3cb4.2.el6.x86_64.rpm
- name: install dynatrace files
shell: rpm -i -vh /home/msuresh6/ansible/rpmpackages/{{item}}
with_items:dynatrace-agent-6.1.0.7880-unix.jar
here I need to pass arguments for the install called "
dynatrace-agent-6.1.0.7880-unix.jar"
appreciate if you can send me the code syntax .
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/7fa3103c-9327-404b-ba6b-387bfd20d440%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.