Skip to content

Commit

Permalink
Exec resource only exists on first run
Browse files Browse the repository at this point in the history
  • Loading branch information
Programie committed Oct 25, 2022
1 parent 907c621 commit 188da65
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions manifests/ppa.pp
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,11 @@
logoutput => 'on_failure',
notify => Class['apt::update'],
require => $_require,
before => File["${apt::sources_list_d}/${sources_list_d_filename}"],
}
}

file { "${apt::sources_list_d}/${sources_list_d_filename}":
require => Exec["add-apt-repository-${name}"],
}
file { "${apt::sources_list_d}/${sources_list_d_filename}": }
}
else {
tidy { "remove-apt-repository-script-${name}":
Expand Down

0 comments on commit 188da65

Please sign in to comment.