--- # The service account, created before anything that chowns to it. # # This is its own file because two later steps both depend on it and neither # owns it: storage.yml chowns the mount point to this user, and install.yml # installs a binary that runs as it. Creating it inside either one makes the # other's ordering an accident. - name: Create the monero system group group: name: "{{ monero_group }}" system: yes state: present - name: Create the monero system user user: name: "{{ monero_user }}" group: "{{ monero_group }}" system: yes shell: /usr/sbin/nologin home: "{{ monero_data_dir }}" create_home: no comment: "Monero node daemon" state: present