Kimi450 / ubuntu_server

Setup an ubuntu server with ease.
85 stars 10 forks source link

Use roles #17

Open Kimi450 opened 1 year ago

Kimi450 commented 1 year ago

Something like the below might be okay?

https://github.com/geerlingguy/ansible-role-docker

    - name: Install Docker
      when: install.docker
      include_role:
        name: geerlingguy.docker
        apply:
          become: True
      vars:
        docker_edition: "ce"
        docker_users:
          - "{{ ansible_user }}"
Kimi450 commented 1 year ago

reloading systemd modules with this might be cleaner too https://docs.ansible.com/ansible/latest/collections/ansible/builtin/systemd_module.html