Giter Site home page Giter Site logo

ansible_qa_playbook's Introduction

This repository will be moved to brew soon in a different branch, for brew usaged checkout brewFormula branch

ANSIBLE QA PLAYBOOK

The repository name is a analogy to a popular speach "Short Arm" like a Trex.

Why waste time with configuration when you just need to do it once? I hate waste my time doing repetitive stuff, so if you need to keep CI machines up and running with latest versions you need to change machines constantly this is what you need!

I would say that the best feature is to update xcode just by running command line :)

How does it works?

Necessary manual steps

  • git SSH key configuration
  • Java installation you'll be asked for the machine password
  • Manually change your apple_id on ios-setup.yml given some limitations with Pexpect
     'Password \(for your email here\):'
    

Ansible Cheat Sheet:

  • -i means inventory, it tells ansible that we would like to use our inventory to load hosts
  • -e means extra-vars, it tells ansible that we're sending extra vars to be used
  • -l selects sub-module for hosts

Usage

Clone this repository

[email protected]:wellavelino/ansible_qa_playbook.git

Ansible documentation

https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#latest-releases-via-pip

If you already have Pyton and pip installed on your machine just run the command below:

pip install --user ansible

Configuration

You have to add your current user to the /scrips/android.sh file to install and create properly the dependencies.

Open default.config.yml and add or remove your cask/brew packages. Also change the desired xcode version to install and Android system images.

In that same file you need to update the following variables:

the downside is that if your account has 2FA enabled it might won't work, if would like, submit a issue and i'll see to implement it.

apple_id: your apple id
apple_password: your password

Running it locally

platform playbook could be android-playbook.yml or ios-playbook.yml

ansible-playbook {platform-playbook.yml} -i hosts -l localhost"

If you would like you can make use of tags to run specifically tasks e.g

- name: check bash already configured
  stat:
    path: ~/.bash_profile
  register: "bash_profile"
  tags:
  - configuration

you could run it like

ansible-playbook {platform-playbook.yml} -i hosts -l localhost --tags "configuration"

Next steps

  • Cron jobs
  • Health check
  • Add more macOS configuration
  • 2FA login on apple store

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.