diff options
| author | Paul Buetow <paul@buetow.org> | 2025-02-14 21:08:34 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-02-14 21:08:34 +0200 |
| commit | 07e5f8d4402346ccb336cc0680cad98d0d5ba920 (patch) | |
| tree | 06927c1e10d41c75e822762ab43606e45c833778 /Rakefile | |
| parent | ccc0fab74a0367c8236679333a40774a3f810512 (diff) | |
add ensure_line
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -1,4 +1,4 @@ -require_relative 'lib/dsl'.frozen +require_relative 'lib/dsl' desc 'Set up wireguard mesh' task :wireguard do @@ -36,7 +36,16 @@ task :hosts do only_when { hostname is :earth } file '/etc/hosts.test' do - add_line '192.168.1.101 foo' + ensure_line '192.168.1.101 foo' + end + end +end + +desc 'foo' +task :foo do + configure do + file '/tmp/foo.txt' do + ensure_line 'foo bar baz' end end end |
