Shorten loop outputs with smaller labels
This commit is contained in:
@@ -304,7 +304,7 @@
|
|||||||
- build
|
- build
|
||||||
- src
|
- src
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item[0].name }}/{{ item[1] }}"
|
||||||
|
|
||||||
- name: install AUR packages
|
- name: install AUR packages
|
||||||
pacman:
|
pacman:
|
||||||
|
|||||||
26
user.yml
26
user.yml
@@ -101,13 +101,17 @@
|
|||||||
register: empty_dir_stat
|
register: empty_dir_stat
|
||||||
with_items: "{{ empty_directories }}"
|
with_items: "{{ empty_directories }}"
|
||||||
check_mode: false
|
check_mode: false
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.name }}"
|
||||||
|
|
||||||
- name: remove sysmlinks
|
- name: remove symlinks
|
||||||
file:
|
file:
|
||||||
path: "{{ item.stat.path }}"
|
path: "{{ item.stat.path }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: item.stat.exists and item.stat.islnk
|
when: item.stat.exists and item.stat.islnk
|
||||||
with_items: "{{ empty_dir_stat.results }}"
|
with_items: "{{ empty_dir_stat.results }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.item.name }}"
|
||||||
|
|
||||||
- name: create empty directories for dotfiles
|
- name: create empty directories for dotfiles
|
||||||
file:
|
file:
|
||||||
@@ -115,6 +119,8 @@
|
|||||||
path: ~/{{ item.name }}
|
path: ~/{{ item.name }}
|
||||||
mode: "{{ item.mode | default('0755') }}"
|
mode: "{{ item.mode | default('0755') }}"
|
||||||
with_items: "{{ empty_directories }}"
|
with_items: "{{ empty_directories }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.name }}"
|
||||||
|
|
||||||
- name: link this folder to ~/.dotfiles
|
- name: link this folder to ~/.dotfiles
|
||||||
file:
|
file:
|
||||||
@@ -135,6 +141,8 @@
|
|||||||
when: not item.template|default(false)
|
when: not item.template|default(false)
|
||||||
with_items: "{{ dotfiles }}"
|
with_items: "{{ dotfiles }}"
|
||||||
check_mode: false
|
check_mode: false
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.to }}"
|
||||||
|
|
||||||
- name: remove invalid copy target (directories)
|
- name: remove invalid copy target (directories)
|
||||||
file:
|
file:
|
||||||
@@ -145,6 +153,8 @@
|
|||||||
- item.stat.exists
|
- item.stat.exists
|
||||||
- item.stat.isdir
|
- item.stat.isdir
|
||||||
with_items: "{{ copy_stat.results }}"
|
with_items: "{{ copy_stat.results }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.item.from }}"
|
||||||
|
|
||||||
- name: make sure target directories exist
|
- name: make sure target directories exist
|
||||||
file:
|
file:
|
||||||
@@ -155,6 +165,8 @@
|
|||||||
with_items: "{{ dotfiles }}"
|
with_items: "{{ dotfiles }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: root
|
become_user: root
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.to }}"
|
||||||
|
|
||||||
- name: link dotfiles
|
- name: link dotfiles
|
||||||
file:
|
file:
|
||||||
@@ -169,6 +181,8 @@
|
|||||||
with_items: "{{ dotfiles }}"
|
with_items: "{{ dotfiles }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: root
|
become_user: root
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.to }}"
|
||||||
|
|
||||||
- name: get state of template targets
|
- name: get state of template targets
|
||||||
stat:
|
stat:
|
||||||
@@ -177,6 +191,8 @@
|
|||||||
when: item.template|default(false)
|
when: item.template|default(false)
|
||||||
with_items: "{{ dotfiles }}"
|
with_items: "{{ dotfiles }}"
|
||||||
check_mode: false
|
check_mode: false
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.to }}"
|
||||||
|
|
||||||
- name: remove invalid template target (directory or symlink)
|
- name: remove invalid template target (directory or symlink)
|
||||||
file:
|
file:
|
||||||
@@ -187,6 +203,8 @@
|
|||||||
- item.stat.exists
|
- item.stat.exists
|
||||||
- not item.stat.isreg
|
- not item.stat.isreg
|
||||||
with_items: "{{ template_stat.results }}"
|
with_items: "{{ template_stat.results }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.item.to }}"
|
||||||
|
|
||||||
- name: deploy dotfiles templates
|
- name: deploy dotfiles templates
|
||||||
template:
|
template:
|
||||||
@@ -199,6 +217,8 @@
|
|||||||
become_user: root
|
become_user: root
|
||||||
when: item.template|default(false)
|
when: item.template|default(false)
|
||||||
with_items: "{{ dotfiles }}"
|
with_items: "{{ dotfiles }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.to }}"
|
||||||
|
|
||||||
- name: create directories
|
- name: create directories
|
||||||
file:
|
file:
|
||||||
@@ -337,6 +357,8 @@
|
|||||||
mode: '0755'
|
mode: '0755'
|
||||||
with_items: "{{ firefox_profile_names.results }}"
|
with_items: "{{ firefox_profile_names.results }}"
|
||||||
when: not ansible_check_mode
|
when: not ansible_check_mode
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.profile_path }}"
|
||||||
|
|
||||||
- name: firefox - configure firefox custom css
|
- name: firefox - configure firefox custom css
|
||||||
copy:
|
copy:
|
||||||
@@ -355,6 +377,8 @@
|
|||||||
- not ansible_check_mode
|
- not ansible_check_mode
|
||||||
- user.firefox_profiles[item.profile_name].manage_css is sameas True
|
- user.firefox_profiles[item.profile_name].manage_css is sameas True
|
||||||
with_items: "{{ firefox_profile_names.results }}"
|
with_items: "{{ firefox_profile_names.results }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.profile_path }}"
|
||||||
tags:
|
tags:
|
||||||
- firefox
|
- firefox
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user