You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
137 lines
1.8 KiB
137 lines
1.8 KiB
# Ubuntu
|
|
|
|
## Available Commands
|
|
|
|
The `ubuntu` profile incorporates commands from [Django](../commands/django.md), [messages](../commands/messages.md), [MySQL](../commands/mysql.md), [PHP](../commands/php.md), [POSIX](../commands/posix.md), [Postgres](../commands/pgsql.md), and [Python](../commands/python.md).
|
|
|
|
### apache
|
|
|
|
Work with Apache.
|
|
|
|
- `apache.disable_module: module_name`
|
|
- `apache.disable_site: site_name`
|
|
- `apache.enable_module: module_name`
|
|
- `apache.enable_site: site_name`
|
|
- `apache.reload`
|
|
- `apache.restart`
|
|
- `apache.start`
|
|
- `apache.stop`
|
|
- `apache.test`
|
|
|
|
### install
|
|
|
|
Install a system package.
|
|
|
|
```ini
|
|
[install apache]
|
|
install: apache2
|
|
```
|
|
|
|
### reload
|
|
|
|
Reload a service.
|
|
|
|
```ini
|
|
[reload postgres]
|
|
reload: postgresql
|
|
```
|
|
|
|
### restart
|
|
|
|
Restart a service:
|
|
|
|
```ini
|
|
[restart postgres]
|
|
restart: postgresql
|
|
```
|
|
|
|
### run
|
|
|
|
Run any shell command.
|
|
|
|
```ini
|
|
[run a useless listing command]
|
|
run: "ls -ls"
|
|
```
|
|
|
|
### start
|
|
|
|
Start a service:
|
|
|
|
```ini
|
|
[start postgres]
|
|
start: postgresql
|
|
```
|
|
|
|
### stop
|
|
|
|
Stop a service:
|
|
|
|
```ini
|
|
[stop postgres]
|
|
stop: postgresql
|
|
```
|
|
|
|
### system
|
|
|
|
Work with the system.
|
|
|
|
- `reboot`
|
|
- `update`
|
|
- `upgrade`
|
|
|
|
```ini
|
|
[update package info]
|
|
update:
|
|
|
|
[upgrade the system]
|
|
upgrade:
|
|
|
|
[reboot the system]
|
|
reboot:
|
|
|
|
```
|
|
|
|
### uninstall
|
|
|
|
Uninstall a package.
|
|
|
|
```ini
|
|
[remove libxyz development package]
|
|
uninstall: libxyz-dev
|
|
```
|
|
|
|
### upgrade
|
|
|
|
Upgrade a package.
|
|
|
|
```ini
|
|
[upgrade libxyz development package]
|
|
upgrade: libxyz-dev
|
|
```
|
|
|
|
### user
|
|
|
|
Create a user:
|
|
|
|
- `groups` (str): A comma separated list of groups to which the user should be added.
|
|
- `home` (str): The user's home directory.
|
|
- `login` (str): The shell to assign.
|
|
- `system` (bool): Create as a system user.
|
|
|
|
```ini
|
|
[create the deploy user]
|
|
user: deploy
|
|
groups: sudo, www-data
|
|
home: /var/www
|
|
sudo: yes
|
|
```
|
|
|
|
Remove a user:
|
|
|
|
```ini
|
|
[remove bob]
|
|
user: bob
|
|
op: remove
|
|
sudo: yes
|
|
```
|
|
|