[TIDY] Update to ansible 4 module names

This commit is contained in:
Jannik Beyerstedt 2021-08-28 16:58:03 +02:00
parent a384c4385a
commit 9f7fa75980
32 changed files with 139 additions and 121 deletions

View file

@ -59,7 +59,7 @@ You can simply run the whole role:
- name: Basic User Shell Setup
hosts: all
tasks:
- import_role:
- ansible.builtin.import_role:
name: common
```
@ -69,39 +69,39 @@ Or call the different tasks individually:
hosts: all
tasks:
- name: Basics - Update first
include_role:
ansible.builtin.import_role:
name: common
tasks_from: update
when: common_settingsonly | default(false) == false
## Run rasks from the role's main.yml
- name: Basics - Install essential tools
include_role:
ansible.builtin.import_role:
name: common
tasks_from: essentials
when: common_settingsonly | default(false) == false
- name: Basics - Install basic tools
include_role:
ansible.builtin.import_role:
name: common
tasks_from: tools
when: common_settingsonly | default(false) == false
- name: Basics - Setup user shell
include_role:
ansible.builtin.import_role:
name: common
tasks_from: usersetup
when: common_settingsonly | default(false) == false
- name: Basics - Install dotfiles
import_role:
ansible.builtin.import_role:
name: common
tasks_from: usersettings
## Additionall tasks for a work station machine
- name: Basics - Install user's working utilities
import_role:
ansible.builtin.import_role:
name: common
tasks_from: usertools
- name: Basics - Install and configure development env (and VS Code)
import_role:
ansible.builtin.import_role:
name: common
tasks_from: devel
```