{
  "provisioners": [
    {
      "type": "shell",
      "inline": [
        "sudo mkdir -p -m 755 /var/www/wiki",
        "sudo chown ubuntu:ubuntu /var/www/wiki"
      ],
      "order": "1"
    },
    {
      "type": "file",
      "source": "./",
      "destination": "/var/www/wiki",
      "order": "2"
    },
    {
      "type": "shell",
      "inline": [
        "sudo chown -R root:root /var/www/wiki"
      ],
      "order": "3"
    }
  ]
}

{
  "provisioners": [
    {
      "type": "shell",
      "inline": [
        "sudo mkdir -p -m 755 /var/www/{{user `project_name`}}",
        "sudo chown ubuntu:ubuntu /var/www/{{user `project_name`}}"
      ],
      "order": "1"
    },
    {
      "type": "file",
      "source": "./",
      "destination": "/var/www/{{user `project_name`}}",
      "order": "2"
    },
    {
      "type": "shell",
      "inline": [
        "sudo chown -R root:root /var/www/{{user `project_name`}}"
      ],
      "order": "3"
    }
  ]
}

Use env project_name instead of hard coding it
Use env project_name instead of hard coding it
