Skip to content
Discussion options

You must be logged in to vote

Yes you should be able to do it via cloud config by using the systemctl plugin or even the commands one

just add it in any phase that you want or if you want to avoid anything enabling it somehow just add it in several phases:


name: "Disable SSH in all stages"
stages:
  fs:
    - name: "Disable SSH in fs stage"
      commands:
        - "systemctl disable sshd"
        - "systemctl stop sshd"
  boot:
    - name: "Disable SSH in boot stage"
      commands:
        - "systemctl disable sshd"
        - "systemctl stop sshd"
  network:
    - name: "Disable SSH in network stage"
      commands:
        - "systemctl disable sshd"
        - "systemctl stop sshd"
  reconcile:
    - name: "Disabl…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Itxaka
Comment options

Answer selected by TueDissingWork
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants