- name: Check locales
shell: "grep -c '^ru_RU.KOI8-R' /etc/locale.gen || :"
register: has_locales
+ changed_when: has_locales.stdout == "0"
- debug:
msg: "Locales have already been configured"
command: test -f ~/.profile -a -f ~/.shellrc
failed_when: false
register: phd_exist
+ changed_when: phd_exist.rc != 0
- debug:
msg: "User phd has already been created"
command: test -L ~root/.cache/mc -a -L ~root/.config/mc -a -L ~root/.local/share/mc
failed_when: false
register: links_exist
+ changed_when: links_exist.rc != 0
- debug:
msg: "mc links have already been created"