Set up the necessary tools such as git chromedriver selenium chromium browser selenium on the slave node through Ansible

–1 vote

Regarding the step for executing the solution in devops project

Set up the necessary tools such as git, chromedriver(selenium), chromium browser(selenium) on the slave node through Ansible


Cant seem to understand what to exactly do here. Can you please elaborate further on this step?

Feb 8, 2020 in Ansible by anonymous
• 130 points
3,371 views
How to configure Git in the slave node?

Hi,

You need to configure your Ansible inventory file in the /etc/ansible folder. After that, you can create an ansible playbook. To install any software with Ansible, we generally use the package module. You can go through the below document.

https://docs.ansible.com/ansible/latest/collections/ansible/builtin/package_module.html

I am new in Ansible. Can you share the ansible playbook?

Hi,

If you have configured the inventory properly, then the below playbook you can use.

- name: Install Git
  package:
    name: {replace with the software name}
    state: present
Thanks it worked.

2 answers to this question.

0 votes

Hey, You are asked to install tools like git, selenium chrome driver, etc on the slave node and this has to be done using ansible which will configure the above tools on your slave machine.

You will need to write the code in ansible playbooks to do the installations.

Have a look at these: https://www.edureka.co/community/41267/install-git-using-ansible

http://coryklein.com/ansible/2015/10/09/using-ansible-to-install-google-chrome.html

Hope this helps!

answered Feb 14, 2020 by Sirajul
• 59,230 points
I have a question , can use the same procedur for the chrominm browser
The process should probably be the same. What exactly are you trying to do?
0 votes
- hosts: all
  vars :
   mytext: |
     [google-chrome]
     name=google-chrome
     baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
     enabled=1
     gpgcheck=1
     gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
   updatetest : |
  tasks:
   - name: Creating a file with content
     file:
      path: "/etc/yum.repos.d/google-chrome.repo"
      mode: 0777
      owner: root
      state: touch
   - name: create File content
     copy:
       dest: "/etc/yum.repos.d/google-chrome.repo"
       content: "{{ mytext }}"
   - name: Install Chrome
     yum:
      name: google-chrome-stable
      state: present
      update_cache: yes
   - name: Epel-release
     yum:
      name: epel-release
      state: present
      update_cache: yes
   - name: install chromium
     yum:
       name: chromium
       state: present
   - name: chromedriver
     yum:
       name: chromedriver
       state: present
...

Above solution for centos.

answered Dec 31, 2020 by Onkar
• 140 points

edited Dec 31, 2020 by MD

Related Questions In Ansible

0 votes
0 answers

Set up the necessary tools such as git, chromedriver(selenium), chromium browser(selenium) on the slave node through Ansible

Going through the Devops project. There is ...READ MORE

Feb 9, 2020 in Ansible by anonymous
• 130 points

closed Feb 14, 2020 by Sirajul 1,541 views
0 votes
1 answer

I could install Git, can u please explain how to set up chromedriver(selenium), chromium browser(selenium) on the slave node through Ansible

Hi@Vinodkumar, Did you go through the related question ...READ MORE

answered Dec 22, 2020 in Ansible by MD
• 95,460 points
1,344 views
0 votes
1 answer
+1 vote
3 answers
0 votes
1 answer
0 votes
1 answer

User on the target VM - Ansible

Yes @Nisha, You can run a shell ...READ MORE

answered Jan 28, 2019 in Ansible by Kavya
838 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,079 views
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP