Session 9

studied byStudied by 15 people
5.0(1)
Get a hint
Hint

Is the name given to the general process of managing a changing software system

1 / 48

flashcard set

Earn XP

Description and Tags

IaaS Automation: Ansible

49 Terms

1

Is the name given to the general process of managing a changing software system

What is Configuration Management?

New cards
2

Support the system integration process so that all developers can:

  • access the project code and documents in a controlled way

  • find out what changes have been made

  • compile and link components to create a system

The aim of configuration management is to

New cards
3

(Continuous Integration/Continuous Delivery)

What does CI/CD stands for?

New cards
4

To be fully automated, with each run fully logged and visible to the entire team

The main goal of the CI/CD processes is

New cards
5

The bits and pieces of a microservices-based application to evolve and mature individually, reducing blockers.

CI/CD allows

New cards
6
  • continuous integration

  • continuous delivery

  • continuous deployment

The CI/CD pipeline involves

New cards
7

Cloud-native companies adopted a fairly extreme approach of

continuously improving their online services by having a fully automated process for building, testing, and deploying new code

New cards
8

The pipeline run is triggered by

a source code repository

New cards
9

The Build stage on CI/CD includes

The compilation of programs written in languages such as Java, C/C++, and Go

New cards
10

In the CI/CD Test stage, automated tests are run in order to

Validate the code and the application behavior.

New cards
11

Why is the Test stage an important stage?

Because it acts as a “safety net” to prevent easily reproducible bugs from being introduced.

New cards
12

Depending on the size and complexity of the project, the Test phase can last from

seconds to hours

New cards
13

What is Ansible?

is an open-source IT automation/ a configuration management tool

New cards
14

What does Ansible automates?

  • Application deployment

  • Cloud provisioning

  • Configuration management

  • configuration of multiple servers/networks/clouds

New cards
15

Who created Ansible?

Michael DeHaan

New cards
16

In witch year was ansible created?

2012

New cards
17

In witch language is Ansible written?

Python and Powershell

New cards
18

How does Ansible automates configuration?

By the use of Ansible playbooks

New cards
19

What are playbooks?

Ansible configuration, deployment and orchestration language, written in YAML

New cards
20

The ansible inventory file defines

The hosts and groups of hosts upon which commands, modules, and tasks in a playbook operate

New cards
21

What does Agentless means?

No client / server concept

New cards
22

What are some ansible features?

  • Simple to setup

  • Declarative

  • Idempoten

New cards
23

What does declarative means?

that a playbook does not require any knowledge of the current state of the server, only its desirable state

New cards
24

What does idempotent means?

That running the same "playbook" multiple times producces the same output/configuraiton

New cards
25

ssh-keygen is used to

Generate private and public keys on the control node

New cards
26

What command can you use to send public key to the ~/.ssh/authorized_keys file in the target node user home directory?

ssh-copy-id user@remotehost

New cards
27

What is the ansible command?

The main Ansible command to run ad-hoc commands on remote nodes

New cards
28

What is the ansible-playbook command?

A command to run playbooks

New cards
29

What is the ansible-pull command?

The main Ansible pull command

New cards
30

What is the ansible-doc command?

The ansible documentation program

New cards
31

What is the ansible-galaxy command?

An ansible Galaxy interaction program

New cards
32

What is the ansible-vault command?

The Ansible password vault

New cards
33

What is the ansible-inventory command?

A command to display or dump the inventory

New cards
34

What is the ansible-console command?

The Ansible interactive console against a chosen inventory

New cards
35

What is the ansible-config command?

A command to view, edit and manage configuration

New cards
36

How do you Transfer a file directly to multiple servers with Ansible?

ansible -i hosts local -m copy -a "src=/etc/hosts dest=/tmp/hosts"

New cards
37

How do you change ownership and permissions on files with Ansible?

ansible -i hosts local -m file -a "dest=/ansible/a.txt mode=600 owner=instructor group=instructor"

New cards
38

How do you delete directories (recursively) and delete files with Ansible?

ansible -i hosts local -m file -a "dest=/path/to/dir state=absent“

New cards
39

How do you ensure a package is installed, but don’t update it with ansible?

ansible -i hosts local -m apt -a "name=acme state=present"

New cards
40

You use -m on ansible to

Select an Ansible module to run the command against

New cards
41

you use -a on ansible to

provide options to the selected module

New cards
42

How do you ensure a package is at the latest version with ansible?

ansible -i hosts local -m apt -a "name=acme state=latest"

New cards
43

How do you ensure a package is not installed with ansible?

ansible -i hosts local -m apt -a "name=acme state=absent"

New cards
44

How do you create or manipulate an existing user account with ansible?

ansible all -m user -a "name=student password=<crypted password here>"
New cards
45

How do you gather discovered vars about remote hosts with ansible?

ansible all -m setup

New cards
46

How do you ensure a service is started on all web servers with ansible?

ansible -i hosts webservers -m service -a "name=httpd state=started"

New cards
47

How do you restart a service on all web servers with ansible?

ansible webservers -m service -a "name=httpd state=restarted"

New cards
48

How do you ensure a service is stopped with ansible?

ansible webservers -m service -a "name=httpd state=stopped“

New cards
49

How do you create a directory with ansible?

ansible local -i hosts -m ansible.builtin.file -a "path=/tmp/testfile1 state=touch mode=700"

New cards

Explore top notes

note Note
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 32 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 190 people
Updated ... ago
5.0 Stars(5)
note Note
studied byStudied by 12 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 20 people
Updated ... ago
4.5 Stars(2)
note Note
studied byStudied by 49 people
Updated ... ago
5.0 Stars(1)

Explore top flashcards

flashcards Flashcard60 terms
studied byStudied by 81 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard32 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard24 terms
studied byStudied by 11 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard38 terms
studied byStudied by 20 people
Updated ... ago
5.0 Stars(3)
flashcards Flashcard20 terms
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard45 terms
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard83 terms
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard336 terms
studied byStudied by 295 people
Updated ... ago
4.5 Stars(2)