You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
937 B

  1. ---
  2. - name: Manage local users and groups
  3. collections: [ 'debops.debops', 'debops.roles01',
  4. 'debops.roles02', 'debops.roles03' ]
  5. hosts: [ 'debian10' ]
  6. become: True
  7. environment: '{{ inventory__environment | d({})
  8. | combine(inventory__group_environment | d({}))
  9. | combine(inventory__host_environment | d({})) }}'
  10. vars:
  11. system_users__self: False
  12. system_users__dotfiles_enabled: True
  13. system_users__dotfiles_repo: 'https://vcs.wpstudio.ru/gitea/dotfiles.git'
  14. vars_files:
  15. - ./../vars/system_users.yml
  16. post_tasks:
  17. - name: Change starship character to dollar sign
  18. shell: "sed -i 's/#/\\\\$/g' /home/{{ lxc_host }}/.config/starship.toml"
  19. args:
  20. executable: /bin/bash
  21. roles:
  22. - role: libuser
  23. tags: [ 'role::libuser', 'skip::libuser' ]
  24. - role: system_users
  25. tags: [ 'role::system_users', 'skip::system_users' ]