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.

34 lines
947 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: |
  19. sed -i 's/#/\\$/g' /home/{{ site_name }}/.config/starship.toml
  20. args:
  21. executable: /bin/bash
  22. roles:
  23. - role: libuser
  24. tags: [ 'role::libuser', 'skip::libuser' ]
  25. - role: system_users
  26. tags: [ 'role::system_users', 'skip::system_users' ]