summaryrefslogtreecommitdiff
path: root/extensions/mason/mason-setup.service
blob: 60403bde8aa48bf99c2b948696e5a6bba23bf4f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
Description=Run mason-setup Ansible scripts
Requires=network.target
After=network.target
Requires=opensshd.service
After=opensshd.service

# If there's a shared /var subvolume, it must be mounted before this
# unit runs.
Requires=local-fs.target
After=local-fs.target

ConditionPathExists=/etc/mason/mason.conf

[Service]
ExecStart=/usr/bin/ansible-playbook -v -i /usr/lib/mason-setup/ansible/hosts /usr/lib/mason-setup/ansible/mason-setup.yml