pyautogui -> controlar mouse e teclado
mouseinfo -> obter info de posição do mouse
openpyxl -> manipular planilhas xlsx/xlsm
selenium -> automatizar interação com browser
webdriver-manager -> gerenciar drivers para o selenium
pyperclip -> utilizar clipboard para copiar e colar
Testado no Ubuntu 20.04 (LTS) x64
hospedado na Digital Ocean
Criar um usuário ubuntu
:
useradd -m -s /bin/bash -g sudo ubuntu
passwd ubuntu
su - ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
tasks: | |
- name: Import a key from a url | |
become: yes | |
ansible.builtin.rpm_key: | |
state: present | |
key: https://packages.microsoft.com/keys/microsoft.asc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
tasks: | |
- name: Add the flathub flatpak repository remote to the user installation | |
community.general.flatpak_remote: | |
name: flathub | |
state: present | |
flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo | |
method: user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: localhost | |
roles: | |
- role: jaredhocutt.gnome_extensions | |
vars: | |
gnome_extension_ids: | |
- 779 # Clipboard Indicator by @Tudmotu | |
- 1319 # GSConnect by @dlandau | |
- 750 # OpenWeather by @jens | |
- 906 # Sound Input & Output Device Chooser by @kgshank | |
- 19 # User Themes by @fmuellner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: localhost | |
roles: | |
- role: jaredhocutt.gnome_extensions | |
vars: | |
gnome_extension_ids: | |
- 779 # Clipboard Indicator by @Tudmotu | |
- 1319 # GSConnect by @dlandau | |
- 750 # OpenWeather by @jens | |
- 906 # Sound Input & Output Device Chooser by @kgshank | |
- 19 # User Themes by @fmuellner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PLAY RECAP ************************************************************************************************************************************************************* | |
localhost : ok=38 changed=16 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: localhost | |
roles: | |
- role: jaredhocutt.gnome_extensions | |
vars: | |
gnome_extension_ids: | |
- 779 # Clipboard Indicator by @Tudmotu | |
- 1319 # GSConnect by @dlandau | |
- 750 # OpenWeather by @jens | |
- 906 # Sound Input & Output Device Chooser by @kgshank | |
- 19 # User Themes by @fmuellner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[rafael@fedora lab_ansible]$ ansible-playbook InstallGnomeExtensions.yml | |
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' | |
PLAY [localhost] ******************************************************************************************************************************************************* | |
TASK [Gathering Facts] ************************************************************************************************************************************************* | |
ok: [localhost] | |
TASK [jaredhocutt.gnome_extensions : Parse Gnome Shell version] ******************************************************************************************************** | |
ok: [localhost] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Criar o diretório e acessá-lo | |
### | |
mkdir lab_ansible ; cd lab_ansible | |
### | |
# Criar o playbook que utilizará a role citada | |
### | |
echo '- hosts: localhost | |
roles: |
NewerOlder